download_attachment
Download a Gmail attachment by filename or ID, then upload it to a specified Google Drive folder. Returns Drive file ID, name, and link.
Instructions
Download an attachment from a Gmail message and upload it to Google Drive.
Identify the attachment by `filename` (preferred — stable across requests) or `attachment_id`;
if the message has exactly one attachment, neither is required. Uploads into the Drive folder
`drive_folder` (created if absent). Returns the Drive file id, name, and web_view_link.
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": {
"message_id": "<message_id>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | ||
| attachment_id | No | ||
| filename | No | ||
| drive_folder | No | Gmail Attachments |