client_getContactDeviceCount
Count a WhatsApp contact's linked devices. Returns total including each Web session and the phone if present.
Instructions
[Client] Get user device count. Each WaWeb Connection counts as one device, and the phone (if exists) counts as one device. So for a non-enterprise user with one WaWeb connection it should return "2"
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": "client_getContactDeviceCount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | ID of the user | |
| sessionId | Yes | Unique identifier for the session (alphanumeric and - allowed) |