X (Twitter) search
x-searchSearch recent posts on X by keyword, hashtag or from:account: 20 posts with text, likes, reposts, replies, views, date and link. No X account or key needed. Use it when: You need real-time reaction, news or discussion on a topic. Not for: Follower lists, private accounts or direct messages. Returns: 20 posts: text, author handle and follower count, likes, reposts, replies, quotes, views, date, media and link. Typical time: about 4 s. Price: $0.006 per search (up to 20 posts), charged only on success. One call = up to 20 posts.
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; X search operators work, e.g. x402 payments, #bitcoin, from:nasa | |
| sortBy | No | Optional, default Latest |