Automates finding Gmail messages with attachments, downloading them via gws CLI, and uploading to a Google Drive folder. Useful for email attachment workflows.
From google-workspacenpx claudepluginhub grailautomation/claude-plugins --plugin google-workspaceThis skill uses the workspace's default tool permissions.
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail,gws-drive
Find Gmail messages with attachments and save them to a Google Drive folder.
gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:client@example.com"}' --format tablegws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}'gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}'gws drive +upload --file ./attachment.pdf --parent FOLDER_ID