gmail_save_attachment_to_drive
Save a Gmail conversation attachment directly to Google Drive, choosing it by file name or index and optionally placing or renaming it in a Drive folder.
Instructions
Save an attachment of a conversation into Google Drive (the tile's 'Save to Drive').
Choose the attachment with name (case-insensitive substring) or attachment_index (from
gmail.attachments); with neither, the conversation must have exactly one attachment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Attachment file name or part of it. | |
| path | No | Drive folder from My Drive ("/" = My Drive, "/A/B"); default: the folder Drive proposes. | |
| index | No | Row index from gmail.list / gmail.search; omit to use the open conversation. | |
| query | No | Run this Gmail search first and take `index` from its results. | |
| title | No | File name in Drive (default: the attachment's name). | |
| folder | No | Open this folder/label first and take `index` from it. | |
| stay_open | No | Leave the conversation open on screen. | |
| keep_unread | No | If the conversation was unread, mark it unread again afterwards. | |
| expect_subject | No | Safety check: the conversation's subject must contain this text (case-insensitive), otherwise nothing is done (not_found). | |
| attachment_index | No | Index from gmail.attachments (0 = first attachment of the thread). |