save_attachments
Batch download all attachments from an email by saving them to a directory on disk. Apply optional filename or content-type filters. Returns the paths of saved files.
Instructions
Save all qualifying attachments from an email to a directory on disk, with optional filename substring or content-type filters. Use to batch-download attachments from a single email. Returns the list of written file paths. Prefer save_attachment when you need to save one specific attachment by its attachmentId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | Composite email id in FOLDER::UID format, as returned by get_emails or search_emails. | |
| outputPath | No | Optional target directory or file path. | |
| includeInline | No | Include inline attachments. | |
| filenameContains | No | Optional filename substring filter. | |
| contentType | No | Optional exact content type filter. |