get_contacts
List contacts stored in a QR device's phone address book and WhatsApp profile names, with pagination and search by name or phone number. Not available for WABA numbers.
Instructions
List the contacts saved on the phone of a QR device (names from the phone address book, plus WhatsApp profile names). Paginated. Not available for WABA numbers.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. Default 1. | |
| limit | No | Contacts per page, 1-1000. Default 100. | |
| search | No | Case-insensitive match on name or phone number | |
| refresh | No | Re-read the full address book from the phone first (slower; at most once per 10 minutes per device). Default false. | |
| device_id | No | Device ID (e.g. D-XXXXX). Optional if the KIRIMI_DEVICE_ID environment variable is set. | |
| saved_only | No | Only contacts saved in the phone address book (saved=true). Default false. |