search_tweets
Search recent tweets from the past 7 days using keywords, hashtags, user mentions, media filters, and advanced query operators to find specific content on X (Twitter).
Instructions
Search recent tweets by query. Supports keywords, hashtags, from:user, to:user, is:reply, has:media, etc. Uses the recent search endpoint (last 7 days).
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 |
|---|---|---|---|
| query | Yes | Search query (e.g. 'from:elonmusk', '#ai', 'machine learning') | |
| max_results | No | Number of results (10-100, default 10) | |
| next_token | No | Pagination token from previous response |