find_chats
Search WhatsApp chats by name or phone number to retrieve chat IDs, chat type, and last activity, with results sorted by newest activity and an adjustable limit.
Instructions
Find chats whose name or phone number contains query (limit 1-25, newest activity first).
Returns chat_id, name, jid, kind (person/group/status/channel) and last_message_at (local time).
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": "find_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |