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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| question | Yes | ||
| x_search | No | ||
| system_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||