sch_download_attachments
Download attachments from a specified email message to disk, with optional folder, output directory, filename filter, and account selection.
Instructions
Download attachments from a message to disk.
Args: msg_id: Message UID from sch_list_mail / sch_search_mail folder: Mailbox folder (default: INBOX) out_dir: Directory to save files (default: ~/Downloads). Must lie inside the allowed folders (by default ~/Downloads and the temp dirs; SCH_MAIL_ALLOWED_DIRS replaces them). filename_filter: Only download files matching this substring (case-insensitive) account: Account key in credentials.json (e.g. "personal" or "work"). Default: the account named by "default" in that file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | INBOX | |
| msg_id | Yes | ||
| account | No | ||
| out_dir | No | ||
| filename_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |