express_search_messages
Search a chat's full message history by query, resolving by name or exact chat ID and optionally filtering to recent days; opening the chat marks it read.
Instructions
Native server-side search within a chat — finds matches across the WHOLE history (not just loaded messages), fast. Resolve the chat by name or exact chatId; if name matches several, the matches are returned instead of searching. Returns matching messages (syncId/time/from/text + attachment metadata). Optionally filter with sinceDays. truncated: true means the app capped results (~100). WARNING: opens the chat (MARKS IT READ).
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": "express_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Person/chat name to resolve | |
| limit | No | Max results returned (default 100) | |
| query | Yes | Search text | |
| chatId | No | Exact chat id (overrides name) | |
| sinceDays | No | Only matches within the last N days (default: all history) |