fetch_email_attachment
Download email attachments from IMAP accounts using email and attachment identifiers. Retrieve files with filename, type, size, and base64 content for processing.
Instructions
Download a specific attachment from an email. Requires the email id and the attachment id (obtained from fetch_email_content). Returns {id, filename, contentType, size, contentBase64} where contentBase64 is the base64-encoded file content.
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>",
"attachment_id": "<attachment_id>"
},
"name": "fetch_email_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The email identifier from list results. | |
| attachment_id | Yes | The attachment identifier from fetch_email_content results. | |
| mailbox | No | Optional folder hint for faster lookup. If omitted, searches all folders. |