gmail_get_attachment
Download a Gmail attachment to a local directory by specifying account, message, and filename. Saves the file and returns its path and metadata.
Instructions
Download an attachment from a Gmail message and save it to local disk. Use gmail_list_attachments first to get filenames. Returns file path and metadata (no binary data in response). Requires readonly scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The attachment filename (from gmail_list_attachments) | |
| accountId | Yes | The Google account ID, alias, or email | |
| messageId | Yes | The message ID containing the attachment | |
| outputDir | Yes | Local directory path to save the attachment to (will be created if needed) |