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

Skill · 已公开版本

gws-chat-send · Google Chat 空间发送消息命令

通过 gws 命令行向指定 Google Chat 空间发送纯文本消息,需提供空间名称与消息内容。

先看看示例

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

输入

向 spaces/AAAAxxxx 发送一条纯文本通知,告知团队评审会议改到周四下午。

输出

预期交付:消息发送结果。(编辑说明,非实际运行结果)

方法说明

---
name: gws-chat-send
description: "Google Chat: Send a message to a space."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws chat +send --help"
---

# chat +send

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

Send a message to a space

## Usage

```bash
gws chat +send --space <NAME> --text <TEXT>
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--space` | ✓ | — | Space name (e.g. spaces/AAAA...) |
| `--text` | ✓ | — | Message text (plain text) |

## Examples

```bash
gws chat +send --space spaces/AAAAxxxx --text 'Hello team!'
```

## Tips

- Use 'gws chat spaces list' to find space names.
- For cards or threaded replies, use the raw API instead.

> [!CAUTION]
> This is a **write** command — confirm with the user before executing.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-chat](../gws-chat/SKILL.md) — All manage chat spaces and messages commands