$npx -y skills add googleworkspace/cli --skill gws-chat-sendGoogle Chat: Send a message to a space.
| 1 | # chat +send |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | Send a message to a space |
| 6 | |
| 7 | ## Usage |
| 8 | |
| 9 | ```bash |
| 10 | gws chat +send --space <NAME> --text <TEXT> |
| 11 | ``` |
| 12 | |
| 13 | ## Flags |
| 14 | |
| 15 | | Flag | Required | Default | Description | |
| 16 | |------|----------|---------|-------------| |
| 17 | | `--space` | ✓ | — | Space name (e.g. spaces/AAAA...) | |
| 18 | | `--text` | ✓ | — | Message text (plain text) | |
| 19 | |
| 20 | ## Examples |
| 21 | |
| 22 | ```bash |
| 23 | gws chat +send --space spaces/AAAAxxxx --text 'Hello team!' |
| 24 | ``` |
| 25 | |
| 26 | ## Tips |
| 27 | |
| 28 | - Use 'gws chat spaces list' to find space names. |
| 29 | - For cards or threaded replies, use the raw API instead. |
| 30 | |
| 31 | > [!CAUTION] |
| 32 | > This is a **write** command — confirm with the user before executing. |
| 33 | |
| 34 | ## See Also |
| 35 | |
| 36 | - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth |
| 37 | - [gws-chat](../gws-chat/SKILL.md) — All manage chat spaces and messages commands |