Wait for code
wait_for_codeWait for the next email that contains a verification code or a magic link and return it. Long-polls up to timeout_seconds (1-55, default 30) and returns {message:null, timeout:true} if nothing arrives. Use this right after you submit the address on a signup form. Next: use the code or link; to answer the sender, call send_message.
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 |
|---|---|---|---|
| after | No | Only consider mail newer than this message id. Optional. | |
| read_token | No | The read_token returned by create_inbox (or send it as Authorization: Bearer). | |
| timeout_seconds | No | How long to wait for mail before giving up, in seconds (1-55). Default 30. |