download_attachment
Download an email attachment to a specified path by providing account name, email ID, attachment name, and save path.
Instructions
Download an email attachment and save it to the specified path. This feature must be explicitly enabled in settings (enable_attachment_download=true) due to security considerations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | The mailbox to search in (default: INBOX). | INBOX |
| email_id | Yes | The email ID (obtained from list_emails_metadata or get_emails_content). | |
| save_path | Yes | The absolute path where the attachment should be saved. | |
| account_name | Yes | The name of the email account. | |
| attachment_name | Yes | The name of the attachment to download (as shown in the attachments list). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| email_id | Yes | ||
| mime_type | Yes | ||
| saved_path | Yes | ||
| attachment_name | Yes |