wait_for_sms_otp
Block until an SMS with an extracted OTP/verification code arrives on the phone number, then return the code. The one-call answer to 'trigger SMS verification, read the code, type it in'. Returns {sms_id, best, candidates}.
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_id": "<phone_number_id>"
},
"name": "wait_for_sms_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | Filter: `from:term`, `to:term`, or `body:term`; a bare term matches the body. | |
| since | No | Only consider messages received after this RFC 3339 timestamp. Omit to accept a message that already arrived. | |
| phone_number_id | Yes | Phone number id (uuid) to watch. | |
| timeout_seconds | No | Give up after this many seconds (default 45, max 60). |