search_messages
Search Google Chat messages by keywords and date range across selected spaces, retrieving and matching content locally when built-in search is unavailable.
Instructions
期間を区切って、キーワードでメッセージを探す。Google 側に検索の仕組みが無いため、取得して手元で照合する。
keywords は空白区切りで、すべての語を含むもの(AND)を探す。全角半角・大文字小文字は区別しない。 本文と添付ファイルの名前が対象。
spaces を省略すると、人の最後の発言が期間内にあるスペースを調べる(since の既定は 30日前)。 ボットだけが投稿するスペースは対象から外れるので、探すときは spaces で指定する。 調べなかったスペースの数は notes に書く。
結果は新しい順。truncated が true なら件数上限や走査上限で打ち切っている(理由は truncated_reasons)。 その場合は期間や語で絞って探し直す。
Args: keywords: 探す語(空白区切り)。 spaces: 調べるスペースの名前・URL・ID のリスト。省略時は期間内に動いたスペースすべて。 since: この時刻より後だけ(既定は 30日前)。 until: この時刻より前だけ。 limit: 返すヒットの最大件数(既定 50)。
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": {
"keywords": "<keywords>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since | No | ||
| until | No | ||
| spaces | No | ||
| keywords | Yes |