Web search¶
The assistant can search the web for current facts, prices and recent events. It answers from the short list of titles, links and snippets that come back.
Turn it on¶
Web search is a tool you can switch on or off. See Tool selection. Results come from a search service built into Agent 42, so you don't need an API key.
You can choose your own search services in Settings → Web search: the order of Tavily, Firecrawl, Exa and SearXNG, an on/off switch for each, your own Tavily, Firecrawl and Exa API keys (write-only: they are stored encrypted and never shown again), and a switch for Claude's built-in search. Changes apply to your next search. Until you change something, the operator's setup below applies, and it is also the fallback for any provider you have not given a key. SearXNG can be switched off only while another enabled provider has a key. A key of yours sends your search queries to that vendor, under your account with them, including from agents you run through the API, reminders, inbound email and the fleet.
An operator can add hosted search providers in front of it: Tavily, Firecrawl and Exa (ADR 0159), each with its own key (WebSearch:Tavily:ApiKey, WebSearch:Firecrawl:ApiKey, WebSearch:Exa:ApiKey; in Azure the TAVILY_API_KEY and FIRECRAWL_API_KEY secrets; in Docker the same names in .env). They are tried in the order of WebSearch:Providers (default tavily,firecrawl,exa), then the built-in service, unless you set your own order. A provider that fails (out of credits, rate limited, bad key, timeout) is skipped for a while, and the next one answers, so search keeps working. A provider that answers with no results is not treated as a failure. Setting a key sends your search queries to that vendor. Preferences → Configuration shows which keys are set and which providers are currently skipped.
On models that use the Responses API, the model provider's own web search is used instead. You use it the same way.
Claude models use Anthropic's own web search in your chats. It is billed by Anthropic per search on your own API key (about $10 per 1,000 searches, plus the result tokens). It needs web search to be enabled for your organization in the Claude Console (Settings, Capabilities). If Anthropic refuses it, Agent 42 falls back to its own search for that chat and tries again about an hour later, so you never lose search. You can switch it off in Settings → Web search. Only interactive chats use it: agents you run through the API, reminders, inbound email, research agents and the fleet keep Agent 42's own search. An operator can turn it off for everyone with the WEB_SEARCH_ANTHROPIC_HOSTED=false repo variable (Azure) or .env line (Docker), which sets WebSearch:AnthropicHosted.
Use it¶
Ask something that needs fresh information, such as "what's the weather forecast for Friday" or "latest release of X". The assistant decides when to search and shows the tool call in the chat.
Limits¶
- It returns a handful of results (up to five), as snippets only.
- Ordinary web pages are read only through
read_web_page(below), and only when you have a Tavily, Firecrawl or Exa key (yours or the operator's). Without one, if a snippet isn't enough, the assistant says so and asks you to paste the text. - Documents are a separate path. With Read web documents switched on, the assistant can read a PDF, Office or text file, but only from a link that came back in a search result or that you pasted yourself. See Document Q&A.
Reading a page (read_web_page)¶
With a Tavily, Firecrawl or Exa key active (ADR 0160), the assistant can read one ordinary web page in full. The vendor fetches and cleans the page, so Agent 42's own server never opens the address. It follows the web_search tool: no separate switch, and it is hidden when only the built-in service is available. It tries your providers in your order, skips one that is out of credits (the same skip list as search) and tries the next. Each read costs about one credit at Firecrawl, one credit per five pages at Tavily, and roughly $1 per 1,000 pages at Exa.
- Only an exact URL from a search result in this conversation, one you typed, or one an opted-in MCP server handed over as a link. Links found inside page text are never followed.
- The text is cut at 8 KB and is treated as untrusted data.
- The vendor receives the address of every page read, in addition to your search queries.
- Fleet tasks get it too, limited to that task's own search results and the URLs in its request. Copilot chats do not (they have their own URL tools).
- Incognito chats may use it; nothing is stored beyond the chat.
When results look empty¶
Search engines sometimes block automated queries, which looks like "no results". Open Preferences → Configuration and follow the link to the search view (/searxng/) to see which engines answered and which failed. Settings you change there only affect that view, not the assistant. Offline development mode has no search service, so the view is unavailable there.