51 lines
1.1 KiB
Markdown
51 lines
1.1 KiB
Markdown
---
|
|
name: gws-chat-send
|
|
description: "Google Chat: Send a message to a space."
|
|
metadata:
|
|
version: 0.22.3
|
|
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
|