Extract a verification code
mailbuttons_extract_codeExtract a one-time / verification code (a 4–8 digit number) from recent mail in a scoped inbox. GOVERNED: codes are only ever read from senders ALLOWLISTED in the mailbox policy — mail from any other sender is ignored, never scanned. Returns {status:"found", code, from, message_id} or {status:"not_found"}. Read-only; requires the read capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Optional sender filter (the expected code sender). | |
| inbox_id | Yes | Inbox (mailbox) id. Must be in scope for the token. | |
| max_age_minutes | No | Ignore messages older than this many minutes. |