Wait for Email
wait_for_emailWait for an incoming email matching optional filters, using real-time long-polling for instant notification and returning the email body in LLM-safe format.
Instructions
Wait for an incoming email matching optional filters. Returns near-instantly when an email arrives (real-time server-side long-polling). Returns the email body in LLM-safe format.
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": {
"inbox_id": "<inbox_id>"
},
"name": "wait_for_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Filter by sender address | |
| subject | No | Filter by subject (substring match) | |
| timeout | No | Max wait time in milliseconds (default: 60000, max: 120000) | |
| inbox_id | Yes | Inbox ID (e.g. ibx_...) |