save_attachment
Downloads an email attachment from a specified message and writes it to a local path, enabling receipt and invoice files to be stored for spending reports.
Instructions
Download an email attachment and save it to disk.
Args: message_id: The message ID from search_emails results. filename: The attachment filename (from read_email's attachments list). save_path: Local file path to save the attachment to. folder: The folder the message is in.
Returns the path to the saved file, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | INBOX | |
| filename | Yes | ||
| save_path | Yes | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |