download_attachments
Download Gmail email attachments to a chosen folder and return each saved path; omit part IDs to save all file attachments.
Instructions
Download multiple attachments from an email in a single call and save them to disk. Omit partIds to download all file attachments. Returns the saved path for each file.
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>"
},
"name": "download_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saveTo | No | Directory path to save the files. Defaults to user Downloads folder (e.g. C:\Users\username\Downloads) | |
| partIds | No | Specific attachment part IDs to download (from list_attachments). Omit to download ALL file attachments of the message. | |
| messageId | Yes | The email message ID | |
| includeInline | No | When downloading all attachments, also include inline ones (embedded images, signatures). Default false. |