Get verification code
get_verification_codeRetrieve the newest email verification code (OTP/2FA) or sign-in magic link from recent mail; optionally wait for a message still arriving.
Instructions
Find the newest verification code (OTP/2FA) or sign-in magic link in recent mail, using false-positive-resistant scoring (EN/DE). Use wait_seconds (max 45) to wait for a mail still in flight; if nothing arrives, simply call again. Works without the watcher via polling — with [settings.watcher] enabled, hits land within ~1 second. Set copy_to_clipboard=true to also place the value on the clipboard (concealed from clipboard managers, auto-cleared). The code/link is returned in the result by design.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account name from list_accounts (omit to scan all accounts) | |
| mailbox | No | Mailbox to scan (default: INBOX) | INBOX |
| wait_seconds | No | Wait up to N seconds for a new mail before giving up (default: 0) | |
| lookback_minutes | No | How far back to scan (default: 15) | |
| copy_to_clipboard | No | Also copy the found value to the user's clipboard |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| from | No | ||
| hint | No | ||
| kind | No | ||
| link | No | ||
| found | Yes | ||
| copied | Yes | ||
| account | No | ||
| mailbox | No | ||
| service | No | ||
| subject | No | ||
| confidence | No | ||
| age_seconds | No | ||
| watcher_active | Yes | ||
| clipboard_concealed | No |