SKILL.md
readonlyread-only
name
recipe-share-doc-and-notify
description
分享 Google Docs 文件並授予編輯權限,同時透過電子郵件將連結寄送給協作者。
分享 Google Doc 並通知協作者
前置條件: 載入以下技能以執行此配方:
gws-drive、gws-docs、gws-gmail
分享 Google Docs 文件並授予編輯權限,同時透過電子郵件將連結寄送給協作者。
步驟
- 尋找文件:
gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}' - 授予編輯者存取權限:
gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}' - 寄送連結:
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'






