search_messages
Search messages across all conversations (individual chats and groups), or within one specific contact chat or group.
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 |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| phone | No | Optional: limit search to a specific contact's individual chat. Group messages are excluded from this scope — use group_id for groups. | |
| query | Yes | Search query to find in message text | |
| group_id | No | Optional: limit search to a specific group. Accepts the group chat_id (e.g. 120363041234567890@g.us), the id from get_groups, or the group name. |