wait_for_otp
Wait for an SMS OTP to arrive for a session and return the code. Supports configurable timeout and automatic number rerouting on timeout.
Instructions
Block until an SMS OTP arrives for this session, then return the code.
Polls the AgentSIM API for up to timeout_seconds. Returns the OTP code
and the message it was extracted from.
If the OTP does not arrive in time, raises a ToolError with advice on retrying.
Always call release_number after you have used the OTP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||