save_attachment
Download an email attachment from a Gmail IMAP mailbox and save it to a local file path. Specify the email UID, exact filename, and destination directory to retrieve the attachment directly.
Instructions
Download an email attachment and save it to a specified file path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Email UID | |
| mailbox | No | IMAP mailbox the UID came from (the `mailbox` field in list results, e.g. "[Gmail]/Sent Mail"). Defaults to INBOX. Required for emails returned by get_emails_by_label, since UIDs are only unique within a mailbox. | |
| filename | Yes | Exact filename of the attachment to download | |
| savePath | Yes | Full file path where to save the attachment |