email_get_attachment
Retrieve an email attachment by account, email, and attachment ID, returning base64-encoded data for download or processing. Include the source folder for IMAP/iCloud messages outside INBOX.
Instructions
Get an email attachment by ID, returns base64 encoded data
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": {
"accountId": "<accountId>",
"emailId": "<emailId>",
"attachmentId": "<attachmentId>"
},
"name": "email_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | ||
| accountId | Yes | ||
| attachmentId | Yes | ||
| sourceFolder | No | Source folder (required for IMAP/iCloud when email is not in INBOX) |