Wait for email
wait_for_emailWait until an email arrives in an inbox, then return it with the one time codes and links extracted, so a sign up is two calls: create_inbox, then this. Blocks up to timeout_seconds (default 60, max 120). Returns {message: {id, from, subject, text, codes, links, ...}, codes, links}: codes are 4 to 8 digit OTPs, most likely first; links are https URLs such as verification links. Only messages received after after (default: now) match, so pass the inbox's created_at if the email may already be there. With the catch-all inbox (any address @{code}.runearc.email), pass to with the address you signed up with. Errors: wait_timeout (nothing matched in time: safe to call again, or loosen from/subject_contains), invalid_timeout, not_found (inbox). Next: enter codes[0] or open the verification link.
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 |
|---|---|---|---|
| to | No | Only match mail sent to this exact address (envelope recipient, To or Cc), such as "signup-42@k7m3qz.runearc.email". Lets several waits share the catch-all inbox. | |
| from | No | Only match senders whose address contains this, case insensitive, such as "github.com". | |
| after | No | Only match messages received after this RFC 3339 time, such as the inbox's created_at. Default: when this call starts. Set it when the email may already have arrived. | |
| inbox_id | Yes | Inbox id to watch, such as "ibx_01j9...". | |
| timeout_seconds | No | Seconds to wait, 1 to 120. Default 60. | |
| subject_contains | No | Only match subjects that contain this, case insensitive, such as "verify". |