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.
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) |