gmail_download_attachment
Download selected Gmail attachments to the phone's Download folder and copy them to this computer, choosing by file name, index, or all attachments.
Instructions
Download attachment(s) of a conversation to the phone's Download folder and copy them to this computer.
Choose the attachment with name (case-insensitive substring) or attachment_index (from
gmail.attachments), or all=true; with none of them the conversation must have exactly one
attachment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Download every attachment of the conversation. | |
| name | No | Attachment file name or part of it. | |
| 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. | |
| folder | No | Open this folder/label first and take `index` from it. | |
| local_dir | No | Destination directory on this computer (default: <downloads dir>/gmail). | |
| stay_open | No | Leave the conversation open on screen. | |
| keep_unread | No | If the conversation was unread, mark it unread again afterwards. | |
| keep_on_phone | No | Leave the downloaded copy in the phone's Download folder. | |
| 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). |