Download attachment
download_attachmentSaves a message attachment to the server's private download folder and returns its local path, size, and SHA-256 without opening the message or overwriting files.
Instructions
Save one message attachment to the server's private download folder and return its local path, size and SHA-256. Never overwrites a file or opens the message. On Linux and macOS, files up to 256 KiB are may also be offered as a 15-minute MCP resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name to save as, e.g. its filename. | |
| max_bytes | No | Refuse larger files. | |
| account_alias | Yes | Login alias from list_accounts. | |
| attachment_ref | Yes | message: the message_ref you opened; identifier, archived: from the attachment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes | ||
| filename | Yes | ||
| local_path | Yes | ||
| size_bytes | Yes | ||
| content_type | Yes | ||
| resource_uri | Yes | ||
| resource_ttl_seconds | Yes |