download_attachment
Save a Gmail attachment to disk and return the saved file path. Select the message ID, filename, optional duplicate index, and destination folder; existing files are not overwritten.
Instructions
Save one attachment to disk and return the file path.
filename: exact name from list_attachments. index: pick among duplicate names.
dest_dir: folder to save into (default ~/Downloads/gmail-attachments).
Existing files are never overwritten; a numeric suffix is added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| dest_dir | No | ||
| filename | Yes | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |