web_search
Discover candidate sources when the needed source or URL is unknown, using query, domain, and recency filters; returns previews, not fetched page content.
Instructions
Discover candidate sources through search; this does not fetch page content.
USE THIS when the needed source or URL is not yet known, when you need a new
independent source, or when search-engine discovery itself is required.
DO NOT search again merely to find another page inside a strong source when
that page is likely linked from the current page; use web_links instead.
Domain filtering example: web_search(query="asyncio", domain="python.org",
exclude_domains=["discuss.python.org"], max_results=20). Domain operators
depend on the provider. Search pagination is not supported.
Results are candidates, not verified page evidence: snippet is a search-engine
preview and result.url has not been fetched. For a candidate:
- web_links(url=result.url): inspect chapters, pagination, references or related
pages exposed by that source without crawling them;
- web_fetch(url=result.url, max_chars=500): preview/read the selected document;
- research_collect(urls=[...]): collect bounded evidence from selected URLs.
Returns results, query_used, unresponsive_engines and cached. Always inspect
unresponsive_engines: nonempty means incomplete search coverage. Expected
failures return {error, hint}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search terms. For several query variants and fetched excerpts, use research_collect instead. | |
| domain | No | Include site:domain in the query, e.g. docs.python.org. Use a hostname, not a page URL. Can be combined with exclude_domains. | |
| engines | No | Optional engine subset: google, google cse, brave, wikipedia, wikidata. Omit to use SearXNG defaults. | |
| language | No | Language/locale such as en or ru. Omit for any language. | |
| time_range | No | Optional recency filter: day, week, month or year. | |
| max_results | No | Requested candidates. Default 10; configured cap 20. This is a result limit, not search pagination. | |
| safe_search | No | 0=off, 1=moderate, 2=strict. Omit for provider defaults. | |
| exclude_domains | No | Exclude domains with -site: operators, e.g. ['pinterest.com', 'example.org']. Provider support varies; verify returned URLs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||