Download attachment
download_attachmentSave an email attachment to a temporary file and return the file path. Retrieve the attachmentId from get_message.
Instructions
Save an attachment to a local temp file and return its path. Get the attachmentId from get_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": {
"mailbox": "<mailbox>",
"uid": "<uid>",
"attachmentId": "<attachmentId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | ||
| uid | Yes | ||
| attachmentId | Yes | Attachment id from get_message. |