download_attachment
Download an attachment from a Fastmail email by providing the email and attachment IDs. Optionally specify a save path to write the file directly to disk.
Instructions
Get an attachment download URL or save an attachment to disk when savePath is provided. Use when the user wants the file from a specific message attachment. Do not use when you still need to discover attachment IDs; use get_email_attachments first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | ID of the email | |
| attachmentId | Yes | ID of the attachment | |
| savePath | No | Absolute file path to save the attachment to. Parent directories will be created automatically. |