邮件与消息32k · #9169
gws-gmail-reply-all
它能做什么
这个工具可以向你收到的邮件的所有收件人发送回复。它会自动帮你保持对话的条理清晰。
适用场景
- ✓当你需要回复一封邮件,并希望所有相关人员都收到你的回复时。
- ✓当你想把更多人加入对话,又不想手动复制粘贴邮箱地址时。
- ✓当你想向邮件的所有参与者快速发送一条最新进展时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-reply-all/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-reply-all/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill gws-gmail-reply-all
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-reply-all/SKILL.md -o SKILL.md
可以这样问 AI
“回复这封邮件,内容为“Got it, thanks!”,并把 john.doe@example.com 添加到抄送(CC)栏。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要提供你收到的邮件的唯一 ID,以及要发送的文字。工具会找到所有原始收件人,并把你的回复发给他们。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
gmail +reply-all
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Reply-all to a message (handles threading automatically)
Usage
gws gmail +reply-all --message-id <ID> --body <TEXT>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--message-id |
✓ | — | Gmail message ID to reply to |
--body |
✓ | — | Reply body (plain text, or HTML with --html) |
--from |
— | — | Sender address (for send-as/alias; omit to use account default) |
--to |
— | — | Additional To email address(es), comma-separated |
--attach |
— | — | Attach a file (can be specified multiple times) |
--cc |
— | — | CC email address(es), comma-separated |
--bcc |
— | — | BCC email address(es), comma-separated |
--html |
— | — | Treat --body as HTML content (default is plain text) |
--dry-run |
— | — | Show the request that would be sent without executing it |
--draft |
— | — | Save as draft instead of sending |
--remove |
— | — | Exclude recipients from the outgoing reply (comma-separated emails) |
Examples
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Sounds good to me!'
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Updated' --remove bob@example.com
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Adding Eve' --cc eve@example.com
gws gmail +reply-all --message-id 18f1a2b3c4d --body '<i>Noted</i>' --html
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Notes attached' -a notes.pdf
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Draft reply' --draft
Tips
- Replies to the sender and all original To/CC recipients.
- Use --to to add extra recipients to the To field.
- Use --cc to add new CC recipients.
- Use --bcc for recipients who should not be visible to others.
- Use --remove to exclude recipients from the outgoing reply, including the sender or Reply-To target.
- The command fails if no To recipient remains after exclusions and --to additions.
- Use -a/--attach to add file attachments. Can be specified multiple times.
- With --html, the quoted block uses Gmail's gmail_quote CSS classes and preserves HTML formatting. Use fragment tags (<p>, <b>, <a>, etc.) — no <html>/<body> wrapper needed.
- With --html, inline images in the quoted message are preserved via cid: references.
- Use --draft to save the reply as a draft instead of sending it immediately.
See Also
- gws-shared — Global flags and auth
- gws-gmail — All send, read, and manage email commands
常见问题
工具怎么知道要回复给谁?
它会根据邮件 ID 找到原始收件人(收件人和抄送人),然后把回复发给他们所有人,再加上你自己。
我可以添加更多人,或者从回复中移除某个人吗?
可以。你可以在抄送或密送栏中添加人员,也可以使用 '--remove' 选项移除某人。
我可以把回复存为草稿吗?
可以。使用 '--draft' 选项后,回复会保存为你 Gmail 中的草稿,而不会立即发送。
详情
热度
- GitHub 星标
- 32k
- 排名
- #9169
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …