download_attachment
Fetch an attachment from an owned email as Base64 for processing or storage. Provide email and attachment IDs; size is limited by MAIL_MAX_ATTACHMENT_BYTES.
Instructions
Read an attachment from an owned message as Base64; subject to MAIL_MAX_ATTACHMENT_BYTES.
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": {
"emailId": "<emailId>",
"attachmentId": "<attachmentId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | inbox | |
| emailId | Yes | ||
| accountId | No | ||
| attachmentId | Yes |