fetch-attachment
Retrieve an attachment's raw bytes as base64 by message ID and attachment name, returning size and MIME type for inline processing without saving to disk.
Instructions
Use when: retrieving an attachment's raw bytes inline as base64 (by message id and attachmentName), e.g. to process its contents without touching disk. Returns: the attachment's bytes base64-encoded, with its size and (for IMAP) MIME type. Do not use when: you don't know the attachment name (use list-attachments first) or you just want it saved to disk (use save-attachment).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| attachmentName | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | ||
| mimeType | No | ||
| contentBase64 | No | ||
| attachmentName | No |