Download attachment
download-attachmentDownloads a specified email attachment to a local file path using the message ID and attachment ID.
Instructions
Downloads an email attachment to a local file
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>",
"attachmentId": "<attachmentId>",
"outPath": "<outPath>"
},
"name": "download-attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message id | |
| outPath | Yes | Local file path to write to | |
| attachmentId | Yes | Attachment id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |