Wait for a one-time code
wait_for_codeWait for a verification code (OTP) to arrive by email and return it. Trigger the code first (e.g. submit the sign-up form with your @agentline.nz address), then call this. Waits up to 55s; if it returns found=false, call it again. Each code is returned once.
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_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | Where the code will arrive (default any) | |
| from_contains | No | Only codes whose sender or text contains this, e.g. "Google" | |
| since_seconds | No | Consider messages from the last N seconds (default 600) | |
| timeout_seconds | No | How long to wait (default 45, max 55) |