gmail_download_attachment
Saves a Gmail attachment to a local directory or uploads it directly to a Google Drive folder.
Instructions
Download an email attachment to a local path, or save it straight into Google Drive.
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_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saveDir | No | Local directory to save into | |
| filename | Yes | File name to save as (use the attachment's filename) | |
| messageId | Yes | ||
| attachmentId | Yes | ||
| saveToDriveFolderId | No | Drive folder ID to upload into ('root' for My Drive) |