download_attachment
Generate a direct download URL for an email attachment using its blob ID. Returns a fully-resolved URL without saving to the filesystem.
Instructions
Get a download URL for an email attachment.
Returns the fully-resolved URL only — does not write to the filesystem. Safe for hosted deployments.
Args: blob_id: Blob ID of the attachment (from get_email_attachments). name: Filename for the download. content_type: MIME type for the download.
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": {
"blob_id": "<blob_id>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blob_id | Yes | ||
| name | No | attachment | |
| content_type | No | application/octet-stream |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||