download_attachment
Saves a selected email attachment to the configured download folder and returns its local path without overwriting existing files.
Instructions
Save one attachment (part number from get_message, e.g. "2" or "1.2") under the download folder (default ~/Library/Application Support/mail-mcp/attachments//; settings.download_dir in accounts.toml) and return its local path. Never overwrites existing files.
The file is marked with com.apple.quarantine (quarantined says whether that worked) and the result
carries warnings for executable or active-content types. Do not open or run a downloaded file
unless the user asks for it. Refused where allow_download = false, and above
settings.max_attachment_bytes (default 50 MB).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": {
"account": "<account>",
"uid": "<uid>",
"part": "<part>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| part | Yes | ||
| folder | No | INBOX | |
| account | Yes |