x_search
Search X (formerly Twitter) in real time via xAI responses API, filtering by accounts and date ranges to find relevant posts.
Instructions
Search X (formerly Twitter) using xAI responses API with real-time index, account filters, and date ranges.
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": "x_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query text, maximum 16000 characters | |
| to_date | No | End date (YYYY-MM-DD), exclusive, real calendar date strictly later than from_date | |
| auth_mode | No | Credential selection mode: auto, api_key, or oauth | |
| from_date | No | Start date (YYYY-MM-DD), inclusive, real calendar date | |
| allowed_x_handles | No | Allowed X handles (max 10, without @), mutually exclusive with excluded_x_handles | |
| excluded_x_handles | No | Excluded X handles (max 10, without @), mutually exclusive with allowed_x_handles | |
| enable_image_understanding | No | Enable image understanding for image-containing posts | |
| enable_video_understanding | No | Enable video understanding for video-containing posts |