download_attachment
Download and save an email attachment to a specified local 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 |
|---|---|---|---|
| account_name | Yes | The name of the email account. | |
| email_id | Yes | The email ID (obtained from list_emails_metadata or get_emails_content). | |
| attachment_name | Yes | The name of the attachment to download (as shown in the attachments list). | |
| save_path | Yes | The absolute path where the attachment should be saved. | |
| mailbox | No | The mailbox to search in (default: INBOX). | INBOX |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | ||
| attachment_name | Yes | ||
| mime_type | Yes | ||
| size | Yes | ||
| saved_path | Yes |