search_tweets
Find tweets by keyword, topic, or specific date range with advanced operators, including historical archives and paginated results.
Instructions
Primary choice for keyword, topic, or date-range tweet searches. Supports full advanced search operators (from:, to:, since:YYYY-MM-DD, until:YYYY-MM-DD, lang:, filter:, -filter:retweets, has:images, OR). Use this instead of get_user_last_tweets whenever querying specific date windows or historical archives (~20 tweets per page).
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>",
"queryType": "<queryType>"
},
"name": "search_tweets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Advanced search query string. Supports operators: from:USER, to:USER, since:YYYY-MM-DD, until:YYYY-MM-DD, lang:en, filter:replies, -filter:retweets, has:images, etc. Example: 'from:elonmusk since:2026-01-01 has:images' | |
| cursor | No | Pagination cursor from a previous response's next_cursor field. Omit for the first page (~20 tweets per page). | |
| queryType | Yes | 'Latest' returns most recent tweets first; 'Top' returns highest-engagement tweets first. Default to 'Latest' for time-sensitive queries. |