download_attachment
Downloads an attachment from a specified email message by message ID, with optional mailbox and attachment index selection to retrieve the intended file.
Instructions
Download an attachment from a specific message
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": {
"messageId": "<messageId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | Mailbox name (default: INBOX) | INBOX |
| messageId | Yes | Message ID containing the attachment | |
| attachmentIndex | No | Index of the attachment to download (0-based) |