PDF、Word 与幻灯片32k · #9174
gws-gmail
它能做什么
这个代理可以帮你管理 Gmail 邮件,包括发送、阅读、回复和整理邮件。
适用场景
- ✓当你需要快速发一封邮件时。
- ✓当你想查看未读邮件的摘要时。
- ✓当你需要回复或转发重要邮件时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill gws-gmail
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail/SKILL.md -o SKILL.md
可以这样问 AI
“给 john.doe@email.com 发一封主题为“会议”的邮件,告诉对方会议推迟到明天。”
每周 5 个新技能,1 分钟读完。
工作原理
它会连接到你的 Gmail 账户来完成你要求的操作。你告诉它要做什么,比如发送或阅读邮件,它就会去执行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
gmail (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws gmail <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+send |
Send an email |
+triage |
Show unread inbox summary (sender, subject, date) |
+reply |
Reply to a message (handles threading automatically) |
+reply-all |
Reply-all to a message (handles threading automatically) |
+forward |
Forward a message to new recipients |
+read |
Read a message and extract its body or headers |
+watch |
Watch for new emails and stream them as NDJSON |
API Resources
users
getProfile— Gets the current user's Gmail profile.stop— Stop receiving push notifications for the given user mailbox.watch— Set up or update a push notification watch on the given user mailbox.drafts— Operations on the 'drafts' resourcehistory— Operations on the 'history' resourcelabels— Operations on the 'labels' resourcemessages— Operations on the 'messages' resourcesettings— Operations on the 'settings' resourcethreads— Operations on the 'threads' resource
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods
gws gmail --help
# Inspect a method's required params, types, and defaults
gws schema gmail.<resource>.<method>
Use gws schema output to build your --params and --json flags.
常见问题
代理怎么知道要读取或回复哪封邮件?
你可以通过发件人、主题或日期指定具体的邮件,也可以让它只关注未读邮件。
我需要担心账户安全吗?
这个代理会遵守安全规则,只会在你授权后访问完成任务所必需的内容。
能用它整理邮件吗?
可以。你可以用命令阅读邮件、查看摘要,甚至管理草稿或给邮件打标签。
详情
热度
- GitHub 星标
- 32k
- 排名
- #9174
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …