wait_for_message
Waits for a new email matching sender, subject, or query—such as a sign-up verification message—and returns its summary plus likely verification codes.
Instructions
Wait for a NEW message (arriving after the call starts) matching from/subject/query, e.g. a sign-up verification email. Returns the summary plus codes: likely verification codes from subject/body. Uses IDLE when available, else polling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Sender's email address: a full address matches exactly ('noreply@github.com'), '@github.com' matches that domain and its subdomains, anything else is a substring of the address ('github'). Display names are ignored (they can be forged). | |
| query | No | Words in From/To/Cc/Subject. | |
| folder | No | INBOX | |
| poll_s | No | Polling interval when IDLE is unavailable. | |
| account | No | Email address; omit for the default (first) account. | |
| subject | No | Subject substring. | |
| timeout_s | No | ≤600 | |
| lookback_s | No | Also accept messages that arrived up to this many seconds before the call (0 = only new mail). |