searchRecent
Find recent posts from X.com within the last 7 days using search queries, with options to filter results and include additional data fields.
Instructions
Search recent posts (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": "searchRecent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query string | |
| max_results | No | Maximum number of results | |
| next_token | No | Token for next page of results | |
| expansions | No | Comma-separated list of expansion fields | |
| tweet.fields | No | Comma-separated list of tweet fields to include | |
| user.fields | No | Comma-separated list of user fields to include | |
| start_time | No | Start time for the search | |
| end_time | No | End time for the search | |
| since_id | No | Only return posts after this ID | |
| until_id | No | Only return posts before this ID |