PluginBench
Skill
Review
Audit score 70

recipe-email-drive-link

googleworkspace/cli

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

What is recipe-email-drive-link?

This recipe combines Google Drive file sharing with Gmail to send a file link and custom message to recipients. Use it when you need to distribute documents and notify recipients in one workflow.

  • Find files in Google Drive by name or query
  • Share files with specific users by email address
  • Send emails with the shared file link and custom message
  • Set access permissions (e.g., reader role) during sharing
  • Automate multi-step document distribution workflows

How to install recipe-email-drive-link

npx skills add null --skill recipe-email-drive-link
Prerequisites
  • gws-drive skill installed
  • gws-gmail skill installed
  • Google Workspace CLI (gws) configured with authentication
Claude Code
Cursor
Windsurf
Cline

How to use recipe-email-drive-link

  1. 1.Query Google Drive to find the file you want to share using gws drive files list with a name filter
  2. 2.Create a sharing permission for the file using gws drive permissions create, specifying the recipient email and access role (e.g., reader)
  3. 3.Send an email using gws gmail +send with the recipient address, subject, and body containing the Google Drive file link (format: https://docs.google.com/document/d/FILE_ID)

Use cases

Good for
  • Send a quarterly report to clients with context in the email body
  • Share project documents with team members and notify them via email
  • Distribute contracts or agreements with explanatory messages
  • Send meeting notes or presentations to stakeholders automatically
  • Share feedback documents with collaborators and notify them
Who it's for
  • Project managers coordinating document distribution
  • Sales teams sharing proposals and reports with clients
  • HR professionals distributing policies or documents
  • Team leads sharing project files with team members
  • Anyone automating document sharing workflows

recipe-email-drive-link FAQ

What access roles can I assign when sharing?

The recipe example uses 'reader' role. Google Drive supports reader, commenter, and writer roles depending on your sharing needs.

Can I share with multiple recipients at once?

Yes, repeat the share and email steps for each recipient, or modify the commands to loop through a list of email addresses.

Do recipients need a Google account to access the file?

By default, shared files require a Google account. You can adjust sharing settings to allow access without an account if needed.

How do I get the FILE_ID for a specific file?

Use the gws drive files list command with a query filter (like name matching) to retrieve the file ID from the results.

Full instructions (SKILL.md)

Source of truth, from googleworkspace/cli.


name: recipe-email-drive-link description: "Share a Google Drive file and email the link with a message to recipients." metadata: version: 0.22.5 openclaw: category: "recipe" domain: "productivity" requires: bins: - gws skills: - gws-drive - gws-gmail

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'