grok_query
Ask Grok a question with live web search and get an answer with inline cited URLs and considered sources; enable X search to include posts.
Instructions
Ask Grok (with live web search) a question; return answer + cited URLs.
Uses the xAI Responses API with the web_search tool. citations
are the URLs Grok actually cites inline; sources_considered lists
everything it looked at. Set x_search=True to also search X posts.
Default model: GEOSEO_GROK_MODEL (grok-4.3).
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": {
"question": "<question>"
},
"name": "grok_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| question | Yes | ||
| x_search | No | ||
| system_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||