search
Run web queries across quota-aware providers to return ranked results or synthesized answers with sources, and continue sessions for follow-up turns.
Instructions
Web search across quota-aware providers. API providers return ranked title/url/snippet results; web providers (gemini_web, grok_web, chatgpt_web) return a synthesized answer with sources and a session token for follow-up turns. For chatgpt_web this is a full chat turn with web search on by default — mode="chat" answers from the model alone. In local stdio mode, attach files with file to ask about them. Niche knobs: topic, recency, domains. Provider-specific extras (scholar/patents/places, structured extract…) → call usage(provider=…) for exact params & example calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Absolute paths of local files/images to attach and ask about. Local stdio only; hosted HTTP rejects file inputs because it cannot access the caller's filesystem. Web providers only; defaults to grok_web when no `provider` is forced. | |
| mode | No | Provider-specific mode. grok: "auto"/"fast"/"expert"/"heavy" (search defaults to fast, deep_research to heavy then expert); keenable "realtime"/"pro"; nimble "standard". | |
| model | No | Web-provider model and/or thinking level. Call usage with that provider for available names and levels; omit to use its default. Ignored by the API providers. | |
| query | No | The search query (or a follow-up message when `session` is set). Optional only when polling a running deep-research `session` for its report. | |
| topic | No | Research niche: "web" (default), "news", or "academic" — steers to a fitting backend. | |
| domains | No | Restrict to these domains; prefix one with "-" to exclude it (e.g. ["nature.com","-reddit.com"]). | |
| recency | No | Recency filter: "day"/"week"/"month"/"year" or an ISO date (e.g. "2024-01-01"). | |
| session | No | Resume token from a previous web-provider result; continues that conversation on the same provider. Web providers only. | |
| provider | No | Force a specific provider instead of the priority order. | |
| max_results | No | Maximum number of results (default 5, capped at 20). |