360 Secure SkillHub
360 安全技能中心

Gws Workflow File Announce

这是gws的跨服务生产力工作流命令,核心功能是将指定ID的Google Drive文件在指定Google Chat空间发送公告。支持自定义消息,输出格式可选json、table等。典型场景:上传文件至Drive后,在团队Chat空间通知成员查看。需先完成gws授权,通过CLI传入参数执行,发送Chat消息并返回对应格式结果。

googleworkspace-bot
googleworkspace-bot
热度 68.05
最近更新 2026-05-11 17:29:14
分类:协作依赖:第三方 API应用场景:工作流 / 任务管理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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