Get a contact
get_contactRetrieve a contact's saved name, profile name, username, and picture ID from a wuapi account's address book by phone number or lid ID; unsaved numbers return not_found.
Instructions
One contact of an account's address book, by number or lid: id: its saved name, profile name, username and picture id as wuapi stored them. A number that is not saved on the phone answers not_found; lookup_contacts asks WhatsApp about any number.
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": {
"accountId": "<accountId>",
"contactId": "<contactId>"
},
"name": "get_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| contactId | Yes | A contact: E.164 with + (`+584241112233`) or `lid:<digits>`. |