跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

gws-workflow-file-announce · 在 Chat 空间发布 Drive 文件

通过 gws 命令行把指定 Drive 文件发布到 Google Chat 空间,可附带自定义消息,并从 Drive 获取文件名生成公告。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

将已上传的 Drive 文件发布到 spaces/ABC123,并附言“Check this out!”。

输出

预期交付:发送到指定 Chat 空间的公告消息,命令结果可按 json、table、yaml 或 csv 格式输出。(编辑说明,非实际运行结果)

方法说明

---
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

```bash
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

```bash
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

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-workflow](../gws-workflow/SKILL.md) — All cross-service productivity workflows commands