360 Secure SkillHub
360 安全技能中心

recipe-email-drive-link

这是一个配方类 Skill,依赖 gws 命令行及前置 Skill gws-drive、gws-gmail:按名称查找 Google Drive 文件,创建 reader 权限共享给指定邮箱,再通过 Gmail 发送含文件链接的邮件。凭据配置与工具安装未包含在内。

分类:协作
googleworkspace
热度 73.35
最近更新 2026-10-18 17:15:31

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/recipe-email-drive-link
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
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'