Web search
web_searchSearch the web and get a ranked list of results with title, URL, date and a short summary.
Use it when you need current or external information: recent events, documentation, prices, facts you are not sure about. Prefer one well-chosen query over many similar ones; if the summaries are not enough, call web_fetch on the most relevant URL instead of searching again.
Query rules:
At most 128 characters. Write concise keywords, not a long question.
Operators (combine freely): site:example.com only results from that site -site:example.com exclude that site lang:en results in a language (e.g. lang:zh, lang:en) after:2025-01-01 published on or after a date (YYYY-MM-DD) before:2025-12-31 published before a date
Example: "cloudflare durable objects pricing site:developers.cloudflare.com after:2025-06-01"
max_results: number of results (1-50, default 10). Asking for more does not cost more but uses more context. include_content: include the full page text of every result. This is very large (often thousands of tokens per result) and rarely needed — leave it false and use web_fetch on one or two chosen URLs instead.
Results may come from a shared cache. refresh: skip the cache and search again now; the new results also replace the cached copy for everyone. Billed at the full (uncached) rate, so only set it when the user needs the latest information or a cached result looks out of date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query, 1-128 characters. Supports site:, -site:, lang:, after:YYYY-MM-DD, before:YYYY-MM-DD. | |
| refresh | No | Skip the cache and search again now (full price); the fresh results replace the cached copy. Default false. | |
| max_results | No | Number of results to return, 1-50. Default 10. | |
| include_content | No | Include full page text for every result. Very large; rarely needed. Default false. |