360 Secure SkillHub
360 安全技能中心

gws-workflow-file-announce

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

分类:协作
googleworkspace
热度 71.29
最近更新 2026-10-18 17:15:20

安装

发给 Agent
帮我安装这个技能: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