Search Messages
search_messagesHybrid semantic and full-text search across WhatsApp messages. Returns relevant messages with authoritative chat and sender metadata, authorship provenance, and quoted-message context when present. Use this for finding past conversations by meaning or keyword. Pass a natural-language query. The semantic path uses the full text; the FTS path safely tokenises it as ANY-of-these words. FTS operators, quotes, and * are stripped rather than interpreted.
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 | Max results to return. Default 20, max 100. | |
| query | Yes | Natural-language meaning or plain keywords. The semantic and FTS paths run together. | |
| since | No | Optional lower bound on message time — an ISO 8601 timestamp (e.g. "2026-06-16T09:30:00Z"). Epoch-ms also accepted. | |
| until | No | Optional inclusive upper bound on message time. ISO 8601 or epoch-ms. | |
| chat_id | No | Optional chat JID to restrict the search to one chat. | |
| from_me | No | Optional direction filter: true for operator/agent messages, false for counterparties. | |
| sender_id | No | Optional sender JID. Resolve a named person with search_contacts first, then pass the returned contact_id. |