Search messages
search_messagesSearches the text of the user's messages in all their chats, or in one, newest first. Each result names its chat and network.
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 | Messages to return, newest first. | |
| query | Yes | The words to find. | |
| chat_id | No | Only this chat's messages (chat_…). | |
| network | No | Only this network's chats, such as whatsapp. Email is left out unless this is email. |