Save attachments
Save a Gmail message's attachments to a folder, optionally only names matching a pattern such as *.pdf.
Command in the Google Workspace toolkit · id ooa.google/gmail_save_attachments · 6 inputs (3 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Message ID | String | Yes | Gmail message id from List Gmail messages. | |
| Target folder | File | Yes | Folder to save into. | |
| Name pattern | String | No | * | Only names matching this pattern, e.g. *.pdf. |
| Overwrite | Boolean | No | false | Replace files of the same name instead of adding a number such as (2). |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |
Outputs
| Output | Type | What it is |
|---|---|---|
| files | List | Saved file paths. |