Save attachment to disk
mail_save_attachmentSaves a specified email attachment to the download folder and returns its file path, so you can open or process the file locally. Available for local installs only.
Instructions
Saves one attachment into the download folder and returns the file path. Local installs only.
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": {
"id": "<id>",
"part": "<part>"
},
"name": "mail_save_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Opaque message id. | |
| part | Yes | Part identifier from `mail_get_message`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes | ||
| content_type | Yes |