Get Email by ID
get_email_by_idRetrieve the complete content of a specific email, including body and flags, using its unique identifier from previous searches.
Instructions
Fetch a single email's full content including body, attachment metadata (no binary content), isAnswered, and isForwarded flags. Use the id returned by get_emails or search_emails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Folder the email lives in (e.g. INBOX, Sent, Drafts). Providing this avoids a cross-folder UID collision. | |
| emailId | Yes | IMAP UID from get_emails or search_emails | |
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| id | Yes | ||
| to | No | ||
| body | Yes | ||
| date | Yes | ||
| from | Yes | ||
| folder | No | ||
| isHtml | No | ||
| isRead | Yes | ||
| subject | Yes | ||
| isStarred | No | ||
| isAnswered | No | True if the email has been replied to (\Answered IMAP flag) | |
| attachments | No | ||
| isForwarded | No | True if the email has been forwarded ($Forwarded IMAP flag) | |
| hasAttachment | No |