search_messages
Search recent WhatsApp messages containing a text query in the 7-day sync buffer, optionally scoped to one chat.
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_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching messages to return (default: 20, max: 100) | |
| query | Yes | Case-insensitive text substring to search for in recent messages | |
| chatId | No | Optional chat ID to restrict search to a single conversation or group |