get_email_content
Retrieve full email content including body, attachments, and metadata by cache number. Optionally download attachments to workspace.
Instructions
Get full email content by cache number. Use the cache number from browse_email_cache (e.g., 1, 2, 3) to retrieve complete email with body, attachments, and all details. Returns: {success: boolean, subject: string, from: string, to: array, cc: array, bcc: array, body: string, attachments: array, sent_date: string, received_date: string}. Note: Invalid cache_number returns appropriate error message. ATTACHMENT DOWNLOAD: Set download_attachments=true to download attachments to the workspace/attachments folder. Attachments are saved with their original names. Use attachment_names to download only specific attachments. IMAGE ATTACHMENTS: When an email has image attachments (contentType starts with 'image/'), image content will be included automatically for multimodal analysis (requires MULTIMODAL_SUPPORTED=true in config). IMPORTANT: If images appear in the response, you MUST analyze them immediately - they often contain critical information (screenshots, photos, diagrams, charts, instructions) not mentioned in the text body. Do NOT skip image analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| return_html | No | If true, return full HTML body. If false (default), return plain text body. Note: This only affects email body format, not image attachments. | |
| cache_number | Yes | Cache number from browse_email_cache (e.g., 1, 2, 3) | |
| download_path | No | Optional custom path for downloading attachments. If not specified, defaults to workspace/attachments folder. | |
| attachment_names | No | Optional list of specific attachment names to download. If not specified, downloads all non-inline attachments. | |
| download_attachments | No | If true, download email attachments to the workspace/attachments folder. Default: false. Attachments will include 'downloaded' and 'file_path' fields in the response. |