request_pairing_code
Initiates pairing and returns an 8-character code to enter in WhatsApp (Linked devices → Link with phone number). Use this when the user has only the one phone (the phone with their WhatsApp): the code is typed into WhatsApp on that same phone, so it needs no second screen or camera — unlike the QR code. Use only ONE pairing method at a time: never call request_pairing_code and get_pairing_qr together, and never call restart_session while the user is pairing.
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": {
"phone_number": "<phone_number>"
},
"name": "request_pairing_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone_number | Yes |