wait_for_mailbox_changes
Monitor your mailbox for real-time changes by opening an IMAP IDLE session. Blocks until a change is detected or a timeout expires, eliminating the need for polling.
Instructions
Open an IMAP IDLE session and block until a mailbox change event arrives or the timeout expires. Use to detect real-time inbox activity without polling. Returns whether a change was observed. Always has a hard timeout (default 15s) to avoid blocking indefinitely — do not use in fire-and-forget pipelines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Mailbox to watch during IDLE. | INBOX |
| timeoutSeconds | No | Maximum watch duration in seconds. |