bygoogleworkspace· 58 skills
Google Chat: Send a message to a space.
$npx -y skills add googleworkspace/cli --skill gws-chat-sendInstalls into the current project.
Run `npx skills use "https://github.com/googleworkspace/cli" --skill "googleworkspace/cli/gws-chat-send"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/googleworkspace/cli" that are relevant to the current task. Run `npx skills add "https://github.com/googleworkspace/cli"` and select the relevant skills, then follow their instructions.
| 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 |