save_attachment
Copy one attachment from a Proton Mail message into the local sandbox, selecting by filename or index. Existing files are never overwritten, and nothing leaves the sandbox.
Instructions
Save one attachment into the local sandbox directory. Files are never overwritten and never leave the sandbox.
Args: message_id: Message-ID of the message. folder: Folder containing the message. filename: Exact attachment filename; omit when the message has exactly one. index: Attachment position (0-based) when filenames are ambiguous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| folder | No | INBOX | |
| filename | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| filename | Yes | ||
| size_bytes | Yes | ||
| content_type | No |