Get Email by ID
get_email_by_idRetrieve a single email's body, attachment metadata, and flags using its ID. Required after listing or searching emails to get full content.
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 |
|---|---|---|---|
| emailId | Yes | IMAP UID from get_emails or search_emails | |
| folder | No | Folder the email lives in (e.g. INBOX, Sent, Drafts). Providing this avoids a cross-folder UID collision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| from | Yes | ||
| to | No | ||
| cc | No | ||
| subject | Yes | ||
| body | Yes | ||
| isHtml | No | ||
| date | Yes | ||
| folder | No | ||
| isRead | Yes | ||
| isStarred | No | ||
| hasAttachment | No | ||
| isAnswered | No | True if the email has been replied to (\Answered IMAP flag) | |
| isForwarded | No | True if the email has been forwarded ($Forwarded IMAP flag) | |
| attachments | No |