search_x
Search X posts using Grok to get a summarised answer with citations, synthesised from relevant tweets.
Instructions
Search X (Twitter) posts using Grok and return a summarised answer with citations.
The xAI server autonomously searches X, analyses results, and synthesises an answer grounded in real posts.
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": "search_x"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language search query (e.g. "What are people saying about $TSLA?"). | |
| to_date | No | Only include posts on or before this date (ISO 8601). | |
| from_date | No | Only include posts on or after this date (ISO 8601, e.g. "2026-02-01"). | |
| temperature | No | Sampling temperature (0-2). | |
| system_prompt | No | Optional system prompt to shape the response style. | |
| allowed_handles | No | Whitelist of X usernames to restrict search to (max 10). | |
| excluded_handles | No | X usernames to exclude from results (max 10). | |
| enable_video_understanding | No | Let the model analyse video clips in posts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |