x_search
Search X/Twitter posts in Latest or Top order, return one page of up to 20 results with reply and quote context, and pass a cursor to fetch the next page.
Instructions
Search X through TwitterAPI.io. Returns one whole upstream page (normally up to 20 posts), preserving Latest or Top order and reply/quote context. Billed per returned post. Pass next_cursor to page; no automatic retries or popularity filters.
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 |
|---|---|---|---|
| sort | No | Latest | |
| query | Yes | ||
| cursor | No | ||
| detail | No | Compact retains full post text and essential context; full also retains author profiles and raw media metadata. | compact |