web_search
Search the web through Grok AI's hosted search to get researched answers. Provide a query, with optional model and system prompt for customized results.
Instructions
Search / research through Grok2API chat completions with hosted web_search enabled. Default Console model: grok-4.3. Other Console chat models also work: grok-4.5, grok-4.20-0309-*, grok-4.20-multi-agent-0309, grok-build-0.1.
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": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| query | Yes | ||
| system_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |