contact_getFormattedNumber
Convert a WhatsApp contact ID into a human-readable formatted phone number, such as turning 12345678901@c.us into +1 (234) 5678-901.
Instructions
[Contact] Get the formatted phone number. Returns the contact's formatted phone number, (12345678901@c.us) => (+1 (234) 5678-901).
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": {
"sessionId": "<sessionId>"
},
"name": "contact_getFormattedNumber"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | No | Unique WhatsApp ID for the contact | |
| sessionId | Yes | Unique identifier for the session (alphanumeric and - allowed) |