search_messages
Search WhatsApp messages by text, date, chat, sender, or media type to find specific conversations and content.
Instructions
Full-text search across WhatsApp messages (FTS5 if available, LIKE fallback).
Args:
query: Search text
chat: Optional chat JID filter
sender: Optional sender JID filter
after: Only after this date (YYYY-MM-DD or RFC3339)
before: Only before this date (YYYY-MM-DD or RFC3339)
media_type: Filter by media type (image|video|audio|document)
limit: Max results (default 50)
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 |
|---|---|---|---|
| query | Yes | ||
| chat | No | ||
| sender | No | ||
| after | No | ||
| before | No | ||
| media_type | No | ||
| limit | No |