wait_for_email
Block until the email inbox receives a message, then return new messages with extracted one-time codes and links (verification links first). Pass after (the last message ID seen) to wait for newer ones. Returns timedOut: true after timeoutSeconds (default 25, max 30); call again to keep waiting. For filtered waits, take a checkpoint before triggering mail, then pass nextCursor back with the same filters.
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": {
"id": "<id>"
},
"name": "wait_for_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Resource UUID. | |
| from | No | Exact sender mailbox, case insensitive. | |
| read | No | ||
| text | No | Literal case insensitive plain text match. | |
| after | No | Optional message ID; only newer messages are returned. | |
| label | No | Exact label, case insensitive. | |
| limit | No | ||
| token | No | Management or inspection token for anonymous resources. Omit for resources owned by your authenticated workspace. | |
| cursor | No | Cursor for this inbox and the same filters. | |
| hasCode | No | ||
| hasLink | No | ||
| subject | No | Literal case insensitive subject match. | |
| mailFrom | No | Exact envelope sender mailbox, case insensitive. | |
| checkpoint | No | Return a cursor for mail arriving after this call. | |
| hasAttachment | No | ||
| timeoutSeconds | No |