download_attachment
Save attachments from a Proton Mail message by UID to local disk, with optional filename, index, folder, and save directory controls; path traversal is blocked.
Instructions
Save the attachment(s) of a message (by uid) to local disk.
Without filename/index and with several attachments, the available ones
are listed first. save_dir defaults to ~/Downloads/proton-mail-mcp; path
traversal is prevented.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uid": "<uid>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| index | No | ||
| folder | No | INBOX | |
| filename | No | ||
| save_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |