# Wyszukiwanie w sieci jako narzędzie asystenta

EN: **Web search and fetch tools for assistants** · id `websearchtool` · aliases: web search tool, web grounding, search grounding, web fetch, wyszukiwanie w internecie

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Aplikacje LLM i agenci](https://aiatlasgraph.com/t/applications.md) › [Narzędzia i integracje](https://aiatlasgraph.com/t/tools.md) › Wyszukiwanie w sieci jako narzędzie asystenta

## Description

- PL: Narzędzia wyszukiwania i pobierania stron, które model wywołuje samodzielnie, by ugruntować odpowiedź w aktualnych treściach z cytowaniami.
- EN: Search and page-fetch tools the model invokes on its own to ground answers in current web content with citations.

## In one sentence

- PL: Asystent sam decyduje, że czegoś nie wie, wyszukuje to w internecie i odpowiada z odnośnikami do znalezionych stron.
- EN: The assistant decides it does not know something, searches the web for it and answers with links to the pages it found.

## Problem it solves

- PL: Wiedza modelu kończy się w dniu treningu, więc bez dostępu do sieci myli się co do cen, wydarzeń i nowości.
- EN: A model's knowledge stops at its training date, so without the web it gets prices, events and new releases wrong.

## What it does

- PL: Działa jak rozmówca, który zamiast zgadywać mówi „sprawdzę”, zagląda do aktualnych źródeł i wskazuje, skąd wie.
- EN: It acts like someone who says let me check instead of guessing, looks at current sources and shows where the answer came from.

## Everyday example

- PL: Pytasz, czy muzeum jest otwarte w poniedziałek świąteczny; asystent sprawdza stronę muzeum i podaje godziny z linkiem.
- EN: You ask whether a museum opens on a bank-holiday Monday; the assistant checks the museum's site and gives the hours with a link.

## This concerns you if you…

- PL: pytasz asystenta o rzeczy, które zmieniają się z tygodnia na tydzień
- PL: chcesz móc sprawdzić źródło odpowiedzi
- PL: budujesz asystenta, który musi znać aktualne fakty
- EN: ask an assistant about things that change week to week
- EN: want to verify where an answer came from
- EN: are building an assistant that must know current facts

## Keywords

web search tool · web fetch · search grounding · allowed_domains · max_uses · search APIs · dynamic filtering · citations

## How it works

- PL: Model ocenia, czy pytanie wymaga aktualnych danych, i generuje zapytanie; dostawca wykonuje wyszukiwanie po stronie serwera, a wyniki (adres, tytuł, fragmenty) trafiają do kontekstu. Model może wykonać kilka rund, pobrać pełną treść strony i odfiltrować wyniki kodem. Odpowiedź zawiera cytowania wskazujące użyte fragmenty; parametry ograniczają liczbę wyszukań i dozwolone domeny.
- EN: The model judges whether a question needs current data and writes a query; the provider runs the search server-side and results (URL, title, snippets) enter context. The model may run several rounds, fetch full page content and filter results with code. The answer includes citations pointing to used passages; parameters cap search count and allowed domains.

## Limits

- PL: Jakość zależy od indeksu wyszukiwarki i wiarygodności stron; treść stron może zawierać wstrzyknięte instrukcje. Wyniki zużywają dużo tokenów, każde wyszukanie bywa płatne osobno, a cytowanie nie gwarantuje, że źródło rzeczywiście popiera twierdzenie.
- EN: Quality depends on the search index and page reliability; page content can carry injected instructions. Results consume many tokens, each search may be billed separately, and a citation does not guarantee the source supports the claim.

## Key terms

- PL: **ugruntowanie**: Opieranie odpowiedzi na dostarczonych źródłach zamiast na pamięci modelu.
- PL: **filtrowanie dynamiczne**: Odsiewanie wyników wyszukiwania kodem, zanim trafią do kontekstu modelu.
- PL: **lista dozwolonych domen**: Ograniczenie wyszukiwania do wskazanych, zaufanych serwisów.
- EN: **grounding**: Basing an answer on supplied sources rather than the model's memory.
- EN: **dynamic filtering**: Sifting search results with code before they reach the model's context.
- EN: **domain allowlist**: Restricting searches to specified, trusted sites.

## Know first

- [Pośrednie wstrzykiwanie promptu (przez dokumenty i narzędzia) (Indirect prompt injection)](https://aiatlasgraph.com/t/indirectinjection.md)

## Sources

- [Web search tool (Claude API documentation)](<https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool>) `claude-web-search-docs` · by Anthropic

---

AI Atlas revision 124 (2026-10-31) · HTML: https://aiatlasgraph.com/t/websearchtool · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-31
