WhatsApp Search Messages
whatsapp_search_messagesOffline full-text search across all WhatsApp chats. Only locally-cached messages are searched — no network access required. Optionally restrict search to a specific chat_id.
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": "whatsapp_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (default 50) | |
| query | Yes | Search text (case-insensitive substring match) | |
| account | No | Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account. | |
| chat_id | No | Optional chat ID to restrict search |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when the search matched nothing (saying whether that zero is proven) or when matches past the rows read may exist | |
| count | No | Number of results returned | |
| account | No | The label of the WhatsApp account this call used. | |
| results | Yes | Matching messages | |
| account_id | No | The id of the WhatsApp account this call used. |