search_recent_posts
Search for posts from the past 7 days using X search syntax. Returns up to 100 results with optional expansions and tweet fields.
Instructions
Search for recent posts (past 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_recent_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query using X search syntax | |
| expansions | No | List of expansions to request (e.g., author_id) | |
| max_results | No | Maximum number of posts to return | |
| user_fields | No | User fields to request when expansions include author | |
| tweet_fields | No | Additional tweet fields to request |