download_attachment
Saves a Gmail email attachment to disk using its message ID and attachment ID, with optional filename and save path.
Instructions
Download an email attachment to disk (requires OAuth2 config)
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": {
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Filename to save as | |
| savePath | No | Optional full path to save the file | |
| messageId | Yes | Gmail message ID | |
| attachmentId | Yes | Attachment ID from list_attachments |