download_attachment
Download email attachments from Gmail to your local filesystem. Provide the message ID and attachment ID, optionally specify a custom filename and save directory.
Instructions
Download an email attachment to local filesystem
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 | Custom filename (optional, uses original if not provided) | |
| savePath | No | Directory to save the file (defaults to current directory) | |
| messageId | Yes | The message ID containing the attachment | |
| attachmentId | Yes | The attachment ID to download |