Web search
web_searchSearch the web with one or more English queries in parallel and get result snippets with links; filter by recency to find sources for time-sensitive or general research.
Instructions
Searches the web for one or more queries and returns snippets with links. Queries run in parallel. IMPORTANT: Always write search queries in English for best results and relevance. Use this to find sources; then call 'web_scrape' to read a full page, or 'web_search_images' when you need pictures (both can be called in the same turn).
Freshness: set the 'date' field to restrict results by recency - 'd' (past day), 'w' (past week), 'm' (past month), 'y' (past year). Use it to prefer the most recent pages when the user asks about news or anything time-sensitive; leave it empty for all time.
Query operators (put them inside the query string itself): 'site:example.com term' limits the search to one site; 'filetype:pdf term' restricts to a file type; double quotes "exact phrase" force an exact match; a leading '-' excludes a word (term -foo); 'intitle:term' requires the word in the page title. Operators can be combined, e.g. 'site:arxiv.org filetype:pdf transformers'.
Results are reported per query with a 'status' field (success, failed or timeout). A failed query does not fail the others; the call errors only if every query fails. The upstream search engines may rate-limit or block requests, which shows up as a failed or timed-out query - retry later or rephrase.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | freshness filter: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time; use only these values | |
| queries | Yes | 1-10 search queries in English, run in parallel; each must be non-empty and at most 512 characters, otherwise the whole call is rejected | |
| timeout_ms | No | timeout for the whole call in milliseconds, shared by all queries; default 5000, clamped to 1000-10000; unfinished queries get status 'timeout' | |
| max_results | No | maximum snippets per query, not in total; default 5, values above 20 are clamped to 20 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| metadata | Yes |