x_search_posts
Search recent posts on X using query syntax to find relevant content. Requires Basic access or higher.
Instructions
Search recent posts. Needs at least Basic access; the free tier cannot read.
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_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | X search query syntax. | |
| next_token | No | ||
| max_results | No | ||
| tweet.fields | No |