download_attachment
Fetch an email attachment via blob ID, returning text directly or binary as base64. Locate blob IDs using get_email.
Instructions
Download an email attachment by its blob ID. Use get_email first to find attachment blob IDs. Returns text content directly for text files, or base64-encoded data for binary files. Maximum attachment size is 10 MB.
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": {
"blobId": "<blobId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filename for the download | attachment |
| blobId | Yes | The blob ID of the attachment (from get_email attachment listing) |