gmail_get_attachment
Download email attachments from Gmail messages to your local filesystem by providing message and attachment IDs.
Instructions
Download a Gmail 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>",
"filename": "<filename>"
},
"name": "gmail_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Filename to save as | |
| savePath | No | Directory to save to (default ~/Downloads) | |
| messageId | Yes | The message ID containing the attachment | |
| attachmentId | Yes | The attachment ID (from gmail_read result) |