x_search
Search X posts via Grok with filters for handles, dates, and media understanding. Retrieve targeted results by specifying allowed or excluded accounts and time range.
Instructions
Ask Grok with the x_search tool enabled through /responses and optional x_search filters.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| input | No | ||
| filters | No | ||
| model | No | ||
| allowed_x_handles | No | ||
| excluded_x_handles | No | ||
| from_date | No | ||
| to_date | No | ||
| enable_image_understanding | No | ||
| enable_video_understanding | No |