grok_web_search
Search the web and Twitter/X via Grok to retrieve real-time information and current events with structured results and source URLs, so you can answer time-sensitive questions.
Instructions
Search the web or Twitter(X) via Grok for real-time information and up-to-date events, with structured result and source URLs.
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 | The precise question or topic to search for | |
| language | No | Preferred response language, e.g. zh or en. | |
| time_range | No | Preferred search lookback window. | |
| max_sources | No | Target max source count in structured output (1-20). | |
| output_mode | No | Response style. brief=short actionable, analyst=deeper synthesis, raw=include more raw context. | |
| freshness_days | No | Prefer sources within this many days when possible. | |
| domains_allowlist | No | Preferred source domains. |