Save an email attachment to Drive
save_gmail_attachment_to_driveCopy one attachment of a Gmail message into this account's Google Drive, as-is — any file type, up to 10 MB, without reading it. Goes into the folder parentItemId (from list_gdrive_items or search_gdrive_items) or My Drive's root when omitted; the name defaults to the attachment's own. Drive allows two files with the same name in a folder, so calling this twice makes a second copy. Get attachmentId from get_gmail_message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name to save under; defaults to the attachment's name | |
| mailbox | Yes | Email address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| messageId | Yes | ||
| attachmentId | Yes | ||
| parentItemId | No | Destination folder id; omit for My Drive's root |