Web search
web_search- Group
- Web
- Turned on by
- The Web search switch on the Advanced tools page of Conversation settings.
- Approval
- Reviewed: writes and open-ended actions ask for approval unless the security level or an earlier “Always allow” covers them.
- Profile key
tool.web_search.description
Searches the web for one query and brings the results into the conversation.
The model has it whenever the Web search switch (Conversation settings → Advanced tools) is on. The conversation's Search provider, shown under the switch, decides what comes back. With Native, the model's own provider searches and returns a written report with the sites it used; on Claude Agent that is Claude Code's own WebSearch. With a provider from Settings → Providers → Search providers, Mewrk searches and returns titles, URLs and text. Setup is on Web search and fetch.
Limits
- A query is 2 to 200 characters.
- A search provider returns 5 results by default, each cut to 2,000 tokens (Result count and Result compression on Advanced tools). The cap is per result, not shared by the call, and a provider without such a setting shows no row for it. Native ignores both. See Shaping results.
Good to know
- Once a search has run with Native on a model that has native search, the conversation keeps it: the selector turns gray, and the Web search switch can no longer be turned off. Start a new conversation to choose again. OpenAI Chat Completions and OpenAI Compatible models have no native search, so nothing is fixed there and you can choose a provider at any time.
- If the chosen provider is not set up or stops working, the model still has
web_search, and searches fail with an error the model can pass on to you.
Parameters
| Parameter | Type | Details |
|---|---|---|
query requiredQuery | string | Self-contained. |