Search the web with Grok CLI
grok_web_searchSearch the web through an isolated Grok CLI profile to retrieve relevant results without using xAI API credits, with optional domain, recency, result-count, and exclusion filters.
Instructions
Search the web through an isolated Grok CLI profile. Does not use xAI API credits.
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 | Web search query. | |
| domains | No | Optional domains to prioritize or restrict to. | |
| recency | No | Optional recency requirement. | |
| maxResults | No | Maximum high-signal results to return. | |
| excludedDomains | No | Optional domains to exclude. |