Wait for a verification code
wait_for_otpPoll a mailbox until a new message arrives, then extract the verification code for signup or login flows.
Instructions
Poll the mailbox until a NEW mail arrives after this call starts, then extract the most likely verification code. Use right after triggering a signup/verification mail. Requires the mail to actually arrive; if the timeout is reached with no new mail, ask the user to check the flow.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll_seconds | No | Poll interval (3-30 seconds; do not go below 3). | |
| timeout_seconds | No | How long to wait for a new mail (10-600 seconds). | |
| subject_contains | No | Only consider new mails whose subject contains this text. |