gmail_bulk_save_attachments
Download attachments from multiple Gmail messages to a local folder, returning a manifest of saved files. Uses readonly access.
Instructions
Download all attachments from one or more Gmail messages to a local directory. Returns a manifest of saved files. Requires readonly scope.
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": {
"accountId": "<accountId>",
"messageIds": "<messageIds>",
"outputDir": "<outputDir>"
},
"name": "gmail_bulk_save_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The Google account ID, alias, or email | |
| outputDir | Yes | Local directory path to save attachments to (will be created if needed) | |
| messageIds | Yes | Array of message IDs to download attachments from | |
| filenamePrefix | No | Optional prefix for filenames. If not set, files use their original names with message ID prefix to avoid collisions. |