Save Email Attachment
save_email_attachmentSave a specific email attachment to disk by finding its message through account, mailbox, subject keyword, and attachment name, then writing the file to your chosen path.
Instructions
Save a specific attachment from an email to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name (e.g., "Gmail", "Work", "Personal") | |
| mailbox | No | Mailbox to search in (default: "INBOX"). Use e.g. "Archive" for an already archived message; nested mailboxes use "/". | INBOX |
| save_path | Yes | Full path where to save the attachment. Protected locations (shell startup and dotfiles in ~, .git/hooks, LaunchAgents, ~/Library/Application Support, ...) are rejected; see "File Access" in the README for opt-in restriction to specific folders. | |
| attachment_name | Yes | Name of the attachment to save | |
| subject_keyword | Yes | Keyword to search for in email subjects |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |