wait_for_sms
Long-poll for a new SMS on a phone number. Returns immediately if a message with id > since already exists, otherwise blocks up to timeout seconds until one lands. The number + token come from provisioning a phone (a paid, account-gated feature — see the dashboard or POST /api/v1/phones). Ideal for catching a verification code texted to the number.
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": {
"number": "<number>",
"token": "<token>"
},
"name": "wait_for_sms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Return messages with id > this. Default 0 (any). | |
| token | Yes | The phone token issued when the number was provisioned. | |
| number | Yes | The phone number in E.164, e.g. +14155550123. | |
| timeout | No | Max seconds to block (1-300). Default 60. |