get_attachment
Retrieve Gmail attachment bytes by message and attachment ID, decode base64url data, and optionally save to a local file.
Instructions
Download Gmail attachment bytes (GET users.me.messages.attachments). Stock Gmail MCP cannot return file bytes. Decodes base64url; writes to disk when path is set; returns size, filename, attachmentId, and standard base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | If set, write decoded bytes to this file (or directory) | |
| filename | No | ||
| messageId | Yes | ||
| attachmentId | Yes |