wait_for_email
Open a durable wait for a mailbox and return immediately — the request never hangs. The wait resolves when a matching message arrives, or expires. Match on the address, and optionally narrow by sender and by a case-insensitive subject substring. Poll the returned waitId with get_wait_status. The resolution is also delivered as the wait.resolved webhook event on the account's verified outbound webhook, so a service with no long-running process need not poll at all.
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": {
"address": "<address>"
},
"name": "wait_for_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | Optional: only resolve for mail from this sender address. | |
| address | Yes | The mailbox to watch, e.g. `billing@example.com`. | |
| subject | No | Optional: only resolve when the subject contains this text (case-insensitive substring). | |
| timeoutMs | No | Optional: how long the wait stays open, in milliseconds (max 24h). |