hey_download_attachment
Downloads an email attachment to disk using the email ID and attachment ID from hey_read_email. Saves the file with details like path, name, size, and mime.
Instructions
Download a single attachment from an email and save it to disk. First call hey_read_email to get the attachments[] array with IDs, filenames, and sizes, then call this tool with the attachment_id to save the file. Returns {local_path, filename, size, mime}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | The email's topic or entry ID (same ID used with hey_read_email — topic IDs are resolved automatically) | |
| attachment_id | Yes | The attachment ID from hey_read_email's attachments array (e.g. 'part-1') | |
| save_path | No | Optional path or directory to save into. Must be within ~/. Defaults to ~/Downloads/hey-attachments/<date>/<filename>. Trailing '/' is treated as a directory. Duplicate filenames are auto-numbered (invite-1.ics, invite-2.ics). |