download_attachments
Retrieve attachments from an Exchange email and save them to a local directory. Provide the email ID and optional target folder.
Instructions
Download all file attachments from an email to disk.
Args: item_id: The Exchange ItemId of the email to download attachments from. target_folder: Local directory to save files (default /tmp/attachments).
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": {
"item_id": "<item_id>"
},
"name": "download_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| target_folder | No | /tmp/attachments |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |