Download attachment
download_attachmentRetrieves an Outlook message or event attachment by ID, saving it to a specified path or returning its text, image, or base64 content for use.
Instructions
Download a file attachment. With savePath the file is written to disk; otherwise text files are returned as text, images as images, and other files as an embedded base64 resource (up to 10 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": {
"id": "<id>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the message/event that has the attachment | |
| name | No | Attachment file name (alternative to attachmentId) | |
| savePath | No | Absolute path to save the file to (a directory or full file path) | |
| overwrite | No | Allow replacing an existing file at savePath (default false) | |
| attachmentId | No | Attachment ID from get_message/list_attachments |