Search contacts
search_contactsSearch WhatsApp contacts by name or phone number using case- and accent-insensitive matching, returning names, phone numbers, LIDs, and JIDs needed to list messages or send.
Instructions
Search WhatsApp contacts by name or phone number. Matching is case- and accent-insensitive ("elodie" finds "Élodie"). Each result gives the best known name, the phone number and/or LID, and the JID to pass to list_messages (chat_jid) or to the send tools (recipient).
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_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | maximum number of results (default 20, max 200) | |
| query | Yes | part of a name, or digits of a phone number | |
| cursor | No | next_cursor from the previous page |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contacts | Yes | ||
| has_more | Yes | ||
| next_cursor | No |