gws-chat by googleworkspace/cli
npx skills add https://github.com/googleworkspace/cli --skill gws-chat` documentation
SKILL.md
前提条件: 请先阅读
../gws-shared/SKILL.md以了解身份验证、全局标志和安全规则。如果该文件不存在,请运行gws generate-skills命令来创建它。
gws chat <resource> <method> [flags]
| 命令 | 描述 |
|---|---|
+send | 向空间发送消息 |
create — 创建自定义表情符号。自定义表情符号仅适用于 Google Workspace 账户,且管理员必须为组织启用自定义表情符号。更多信息,请参阅 和 。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
delete — 删除自定义表情符号。默认情况下,用户只能删除自己创建的自定义表情符号。由管理员分配的 表情符号管理员 可以删除组织中的任何自定义表情符号。请参阅 了解 Google Chat 中的自定义表情符号。自定义表情符号仅适用于 Google Workspace 账户,且管理员必须为组织启用自定义表情符号。get — 返回自定义表情符号的详细信息。自定义表情符号仅适用于 Google Workspace 账户,且管理员必须为组织启用自定义表情符号。更多信息,请参阅 了解 Google Chat 中的自定义表情符号 和 管理自定义表情符号权限。list — 列出经过身份验证的用户可见的自定义表情符号。自定义表情符号仅适用于 Google Workspace 账户,且管理员必须为组织启用自定义表情符号。更多信息,请参阅 了解 Google Chat 中的自定义表情符号 和 管理自定义表情符号权限。download — 下载媒体文件。下载支持 URI /v1/media/{+name}?alt=media。upload — 上传附件。示例请参阅 将媒体作为文件附件上传。completeImport — 完成指定空间的 导入过程 并使其对用户可见。create — 创建一个空间。可用于创建命名空间或 导入模式 下的群聊。示例请参阅 创建空间。delete — 删除一个命名空间。始终执行级联删除,这意味着空间的子资源(例如在空间中发布的消息和空间中的成员资格)也将被删除。示例请参阅 删除空间。findDirectMessage — 返回与指定用户的现有直接消息。如果未找到直接消息空间,则返回 404 NOT_FOUND 错误。示例请参阅 查找直接消息。使用 应用身份验证 时,返回指定用户与调用 Chat 应用之间的直接消息空间。get — 返回空间的详细信息。示例请参阅 获取空间详细信息。list — 列出调用者是其成员的空间。群聊和直接消息在发送第一条消息之前不会列出。示例请参阅 列出空间。patch — 更新空间。示例请参阅 更新空间。如果更新 displayName 字段时收到错误消息 ALREADY_EXISTS,请尝试使用其他显示名称。Google Workspace 组织内可能已有空间使用了此显示名称。search — 根据管理员的搜索返回 Google Workspace 组织中的空间列表。在请求中,将 use_admin_access 设置为 true。示例请参阅 搜索和管理空间。setup — 创建一个空间并将指定用户添加到其中。调用用户会自动添加到该空间,不应在请求中指定为其成员资格。示例请参阅 设置具有初始成员的空间。要指定要添加的人员成员,请添加具有适当 membership.member.name 的成员资格。要添加人员用户,请使用 users/{user},其中 {user} 可以是用户的电子邮件地址。members — 对 'members' 资源的操作messages — 对 'messages' 资源的操作spaceEvents — 对 'spaceEvents' 资源的操作sections — 对 'sections' 资源的操作spaces — 对 'spaces' 资源的操作在调用任何 API 方法之前,请先检查它:
# 浏览资源和方法
gws chat --help
# 检查方法的必需参数、类型和默认值
gws schema chat.<resource>.<method>
使用 gws schema 的输出内容来构建您的 --params 和 --json 标志。
每周安装量
6.0K
代码仓库
GitHub 星标数
22.5K
首次出现
2026年3月4日
安全审计
安装于
codex5.9K
opencode5.8K
gemini-cli5.8K
cursor5.8K
github-copilot5.8K
kimi-cli5.8K
` documentation
SKILL.md
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws chat <resource> <method> [flags]
| Command | Description |
|---|---|
+send | Send a message to a space |
create — Creates a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions.delete — Deletes a custom emoji. By default, users can only delete custom emoji they created. Emoji managers assigned by the administrator can delete any custom emoji in the organization. See Learn about custom emojis in Google Chat. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization.get — Returns details about a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions.list — Lists custom emojis visible to the authenticated user. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions.download — Downloads media. Download is supported on the URI /v1/media/{+name}?alt=media.upload — Uploads an attachment. For an example, see Upload media as a file attachment.completeImport — Completes the import process for the specified space and makes it visible to users.create — Creates a space. Can be used to create a named space, or a group chat in Import mode. For an example, see Create a space.delete — Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see Delete a space.findDirectMessage — Returns the existing direct message with the specified user. If no direct message space is found, returns a 404 NOT_FOUND error. For an example, see Find a direct message. With app authentication, returns the direct message space between the specified user and the calling Chat app.sections — Operations on the 'sections' resourcespaces — Operations on the 'spaces' resourceBefore calling any API method, inspect it:
# Browse resources and methods
gws chat --help
# Inspect a method's required params, types, and defaults
gws schema chat.<resource>.<method>
Use gws schema output to build your --params and --json flags.
Weekly Installs
6.0K
Repository
GitHub Stars
22.5K
First Seen
Mar 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex5.9K
opencode5.8K
gemini-cli5.8K
cursor5.8K
github-copilot5.8K
kimi-cli5.8K
99,500 周安装
get — Returns details about a space. For an example, see Get details about a space.list — Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see List spaces.patch — Updates a space. For an example, see Update a space. If you're updating the displayName field and receive the error message ALREADY_EXISTS, try a different display name.. An existing space within the Google Workspace organization might already use this display name.search — Returns a list of spaces in a Google Workspace organization based on an administrator's search. In the request, set use_admin_access to true. For an example, see Search for and manage spaces.setup — Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see Set up a space with initial members. To specify the human members to add, add memberships with the appropriate membership.member.name. To add a human user, use users/{user}, where {user} can be the email address for the user.members — Operations on the 'members' resourcemessages — Operations on the 'messages' resourcespaceEvents — Operations on the 'spaceEvents' resource