Search posts
search_tweetsSearch X posts. Supports X search operators in the query (from:, to:, lang:, min_faves:, since:, until:, -filter:replies). Costs 15 credits per post returned.
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_tweets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | latest first, most engaged first, or posts with media (values of POST /v2/search) | latest |
| count | No | How many posts to return (default 10, max 100) | |
| query | Yes | Search query, X operators allowed | |
| cursor | No | next_cursor from the previous page, to continue |