Wait for SMS
wait_for_smsBlocks until the first SMS/OTP code arrives on a rented number, then returns the code. Provides timeout and polling interval to control the wait.
Instructions
Block until the first SMS/OTP code arrives on a rental, or time out. The one-step way to rent a number and get the code in an automated flow.
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": {
"rentalId": "<rentalId>"
},
"name": "wait_for_sms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rentalId | Yes | The rentalId returned by rent_number. | |
| timeoutMs | No | Max time to wait, in ms. | |
| intervalMs | No | Poll interval, in ms. |