Web Search
web_searchSearch the web and return relevance-ranked page excerpts for research, fact lookup, or URL discovery. Results include snippets ready to read and cite.
Instructions
Search the web and get relevance-ranked page excerpts for each result, ready to read and cite. First tool for any research, fact lookup, or URL discovery; most questions need one call and no follow-up fetch. Operators use a colon: site:example.com, "exact phrase", -excluded. count sets how many source URLs (1-20, default 8); max_tokens caps the total excerpt size (1024-32768, default 8192); freshness limits results by date (pd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD); country and search_lang scope the market. Returns JSON: query, result_count, results[{title, url, site, age, snippets[]}].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of source URLs to return | |
| query | Yes | Search query; operators use a colon (site:example.com) | |
| country | No | Two-letter country code, e.g. KR, US | |
| freshness | No | Date filter: pd (day), pw (week), pm (month), py (year), or YYYY-MM-DDtoYYYY-MM-DD | |
| max_tokens | No | Cap on total excerpt tokens | |
| search_lang | No | Search language code, e.g. ko, en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| results | Yes | ||
| result_count | Yes |