List contacts
list_contactsFetch an account's saved WhatsApp contacts from its synced address book. Search by name, username, or number and paginate results.
Instructions
An account's address book as its phone synced it to wuapi, ordered by saved name: each contact's id, number, savedName, WhatsApp profile name, and the username and picture id seen so far. Only contacts the phone saved (or that have a business name); people the account just chatted with are in list_chats. Read from what wuapi stored, so about and deviceCount are not here: lookup_contacts asks WhatsApp for those. Search names, usernames and numbers with q.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search the saved name, profile name, business name, username or number. Results come best match first. | |
| limit | No | Page size, 1 to 100. Default 20. | |
| cursor | No | `nextCursor` from the previous page, to get the next one. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). |