recipe-share-doc-and-notifyby Google
Share a Google Docs document with edit access and email collaborators the link.
npx skills add https://github.com/googleworkspace/cli --skill recipe-share-doc-and-notifyShare a Google Doc and Notify Collaborators
PREREQUISITE: Load the following skills to execute this recipe:
gws-drive,gws-docs,gws-gmail
Share a Google Docs document with edit access and email collaborators the link.
Steps
- Find the doc:
gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}' - Share with editor access:
gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}' - Email the link:
gws gmail +send --to reviewer@company.com --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'
More skills from Google
gws-groupssettings
by Google
Manage Google Groups settings.
gws-modelarmor-sanitize-response
by Google
Google Model Armor: Sanitize a model response through a Model Armor template.
gws-people
by Google
Google People: Manage contacts and profiles.
gws-reseller
by Google
Google Workspace Reseller: Manage Workspace subscriptions.
gws-shared
by Google
gws CLI: Shared patterns for authentication, global flags, and output formatting.
gws-sheets
by Google
Google Sheets: Read and write spreadsheets.
gws-sheets-append
by Google
Google Sheets: Append a row to a spreadsheet.
gws-sheets-read
by Google
Google Sheets: Read values from a spreadsheet.