search_messages
Smart search of the user's connected message sources (Gmail, Slack, and Facebook Messenger today; more later). Give a natural-language intent; we compile the query, search all connected accounts, retry with different wording if nothing matches, and return only the messages relevant to the intent, plus trials (each query tried + hit count) and note (what was excluded). Slack requires a workspace connected with search:read (older connections must reconnect; they're skipped automatically). Use search_messages_raw instead if you want to run an exact connector query yourself. Each errors[] entry carries kind: 'reconnect' = that account's connection is broken or lacks a permission (tell the user to reconnect it under 設定 → サービス連携); 'accounthub_unavailable' = AccountHub itself is down — show the error text (it asks the user to contact the service provider); reconnecting will not help, so never suggest reconnecting; 'provider_unavailable' = Slack/Google itself may be having an outage (not the user's connection, not AccountHub) — show the error text with its status-page link and retry later; 'transient' = rate limit, wait and retry. Only 'reconnect' means reconnecting helps. Chatwork has no search API: it scans only the latest 100 messages of each of the most recently active rooms (default 10, max 30), by keyword substring (space-separated = AND) — older messages are NOT found and there is no time-range filter. coverage in the result says exactly what was scanned.
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": {
"text": "<text>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Natural-language search intent, e.g. "先週の田中さんからの未読メール". | |
| accounts | No | Limit to these account labels (see list_accounts). Omit to search all accounts. | |
| connectors | No | Limit to these connectors. Omit to search all connected + readable ones. |