recipe-email-drive-link

$npx mdskill add googleworkspace/cli/recipe-email-drive-link

Share a Google Drive file and email its link to recipients.

  • Automates sharing a Google Drive file and notifying recipients via email.
  • Depends on gws-drive and gws-gmail skills for file and email operations.
  • Uses predefined steps to find, share, and email the file link.
  • Outputs a shared file with an email containing the link and message.

SKILL.md

.github/skills/recipe-email-drive-linkView on GitHub ↗
---
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": "[email protected]"}'`
3. Email the link: `gws gmail +send --to [email protected] --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'`

More from googleworkspace/cli