search_posts
Search X posts by keyword, user handles, date range, language, and freshness to retrieve recent results; optionally enable image or video understanding for richer analysis.
Instructions
X(旧Twitter)の投稿を検索します。Grok x_search経由で最新ポストを取得します。
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_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 検索クエリ | |
| to_date | No | 終了日 (YYYY-MM-DD) | |
| language | No | 言語コード (ja/en等) | ja |
| freshness | No | 鮮度フィルタ (auto/day/week/month) | auto |
| from_date | No | 開始日 (YYYY-MM-DD) | |
| max_results | No | 最大結果数 (1-25) | |
| search_mode | No | 検索モード (auto/latest/popular) | auto |
| temperature | No | 生成温度 (0.0-1.0) | |
| allowed_x_handles | No | 検索対象ハンドル(カンマ区切り、例: "elonmusk,OpenAI") | |
| max_output_tokens | No | 最大出力トークン数 | |
| excluded_x_handles | No | 除外ハンドル(カンマ区切り) | |
| enable_image_understanding | No | 画像理解を有効化 | |
| enable_video_understanding | No | 動画理解を有効化 |