360 Secure SkillHub
360 安全技能中心

gws-workflow-file-announce

该 Skill 提供一个 Google Workspace CLI 命令,用于在指定 Google Chat 空间发送消息,公告指定的 Google Drive 文件。它接收文件 ID 与空间名称,可选自定义消息,并会先从 Drive 读取文件名来构建公告内容。该命令属于写操作,会实际发送 Chat 消息;鉴权与全局参数依赖外部的 gws-shared Skill,文件上传需另行完成。支持 js…

googleworkspace
热度 68.07
最近更新 2026-10-18 17:15:20
分类:协作依赖:第三方 API应用场景:工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add googleworkspace/cli/gws-workflow-file-announce
Metadata
name
gws-workflow-file-announce
description
Google Workflow: Announce a Drive file in a Chat space.
metadata
{"version":"0.22.5","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws workflow +file-announce --help"}}

workflow +file-announce

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Announce a Drive file in a Chat space

Usage

gws workflow +file-announce --file-id <ID> --space <SPACE>

Flags

Flag Required Default Description
--file-id ✓ — Drive file ID to announce
--space ✓ — Chat space name (e.g. spaces/SPACE_ID)
--message — — Custom announcement message
--format — — Output format: json (default), table, yaml, csv

Examples

gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123 --message 'Check this out!'

Tips

  • This is a write command — sends a Chat message.
  • Use gws drive +upload first to upload the file, then announce it here.
  • Fetches the file name from Drive to build the announcement.

See Also