Skills

Recipe Email Drive Link

Share a Google Drive file and email the link with a message to recipients.

Install

npx skills add googleworkspace/cli --skill recipe-email-drive-link -g -a claude-code -y
Repository
googleworkspace/cli32k
Category
Engineering
Updated
5d ago
License
Apache-2.0
Context cost
Lightabout 162 tokens
Runs scripts
No, instructions only

What it does

Share a Google Drive file and email the link with a message to recipients.

Email a Google Drive File Link

PREREQUISITE: Load the following skills to execute this recipe: gws-drive, gws-gmail

Share a Google Drive file and email the link with a message to recipients.

Steps

  1. Find the file: gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'
  2. Share the file: gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'
  3. Email the link: gws gmail +send --to client@example.com --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'

More in Engineering