recipe-share-doc-and-notify

recipe-share-doc-and-notify

热门

分享 Google Docs 文档的编辑权限,并通过电子邮件将链接发送给协作者。

2.9万Star
1669Fork
更新于 2026/3/31
SKILL.md
只读
名称
recipe-share-doc-and-notify
描述

分享 Google Docs 文档的编辑权限,并通过电子邮件将链接发送给协作者。

分享 Google 文档并通知协作者

先决条件: 加载以下技能以执行此配方:gws-drivegws-docsgws-gmail

分享 Google Docs 文档的编辑权限,并通过电子邮件将链接发送给协作者。

步骤

  1. 查找文档:gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}'
  2. 授予编辑权限:gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}'
  3. 发送电子邮件链接: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'