gmail_download_attachment
Download an email attachment to a sandboxed quarantine directory, returning its local path, SHA-256 hash, and image flag.
Instructions
Download an email attachment to a sandboxed quarantine directory. Returns local path, SHA-256 hash, and image flag.
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": {
"message_id": "<message_id>",
"attachment_id": "<attachment_id>",
"filename": "<filename>"
},
"name": "gmail_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Email or alias (uses active account if omitted) | |
| filename | Yes | Original filename of the attachment | |
| mime_type | No | MIME type (defaults to application/octet-stream) | |
| message_id | Yes | Gmail message ID containing the attachment | |
| attachment_id | Yes | Attachment ID from gmail_read_message response |