Download attachment
download_attachmentGet a short-lived URL to download a single email attachment by emailId and blobId from search or thread results. Saves large files out-of-band; the link expires in 24 hours.
Instructions
Get a short-lived download URL for one email attachment, identified by the emailId + blobId that search_emails, get_thread, or get_email lists. The result is metadata plus a URL — never the file content. Save the file to disk out-of-band, e.g. curl -sS -o '<filename>' '<url>'; do not fetch the URL into the conversation, the file may be large. The URL expires after 24 hours — re-call this tool for a fresh one. For the whole message as an .eml file use download_email instead.
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>",
"emailId": "<emailId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blobId | Yes | The attachment blobId, as listed by search_emails, get_thread, or get_email for that message. | |
| emailId | Yes | The id of the message the attachment belongs to. |