Grok Web Search
grok_web_searchSearch and browse the public web via Grok's server-side search, with optional domain allowlists or exclusions to narrow results and reduce metered requests.
Instructions
Search and browse the public web through Grok's server-side web_search tool. This is a metered external request and may invoke the upstream tool multiple times. Prefer narrower and cheaper search tools when they are sufficient.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "grok_web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Focused search question | |
| allowed_domains | No | Only search these domains, without schemes or paths | |
| excluded_domains | No | Exclude these domains; cannot be combined with allowed_domains |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| answer | Yes | ||
| citations | Yes | ||
| responseId | No | ||
| inputTokens | No | ||
| totalTokens | No | ||
| outputTokens | No | ||
| providerSlot | No | ||
| xSearchCalls | Yes | ||
| providerCount | No | ||
| costInUsdTicks | No | ||
| webSearchCalls | Yes | ||
| providerBaseUrl | No |