Start OTP
otp_startStart a WhatsApp OTP session to send a one-time code to a phone number. Optionally set OTP length, country code, and message template.
Instructions
Start a LoginWA OTP session: send a one-time code to a WhatsApp phone number via a connected device.
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": "<phone>"
},
"name": "otp_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | Recipient phone (E.164 or digits, e.g. 6281234567890) | |
| device_id | No | Optional device to send from | |
| otp_length | No | OTP length 4..8 (default 6) | |
| country_code | No | Optional country code digits, e.g. 62 | |
| message_template | No | Optional message template; use {{otp}} placeholder if customizing |