邮件与消息32k · #9156
gws-chat-send
它能做什么
这个命令可以向指定的 Google Chat 空间发送一条消息。你需要指定发送到哪个空间,以及要发送的内容。
适用场景
- ✓当你需要通知团队有新进展时。
- ✓当你想在群里分享一个重要链接时。
- ✓当你想快速回复聊天中的某个问题时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/gws-chat-send/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-chat-send/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill gws-chat-send
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-chat-send/SKILL.md -o SKILL.md
可以这样问 AI
“请向“Project Alpha”空间发送消息:“会议推迟到明天。””
每周 5 个新技能,1 分钟读完。
工作原理
你需要提供空间名称和消息内容。系统会找到对应的空间,并帮你把文字发送出去。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
chat +send
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Send a message to a space
Usage
gws chat +send --space <NAME> --text <TEXT>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--space |
✓ | — | Space name (e.g. spaces/AAAA...) |
--text |
✓ | — | Message text (plain text) |
Examples
gws chat +send --space spaces/AAAAxxxx --text 'Hello team!'
Tips
- Use 'gws chat spaces list' to find space names.
- For cards or threaded replies, use the raw API instead.
[!CAUTION] This is a write command — confirm with the user before executing.
See Also
- gws-shared — Global flags and auth
- gws-chat — All manage chat spaces and messages commands
常见问题
我如何找到空间名称?
你可以使用命令 `gws chat spaces list` 查看可用空间的列表。
我可以发送更复杂的消息,比如带格式的消息吗?
这个命令只适用于简单的文本消息。如果需要更复杂的消息,你需要使用原始 API。
这个命令可以创建新空间吗?
不可以。这个命令只能向已有的空间发送消息。
详情
热度
- GitHub 星标
- 32k
- 排名
- #9156
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …