Loading...
Loading...
Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.
npx skill4agent add googleworkspace/cli gws-events-subscribePREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
gws events +subscribe| Flag | Required | Default | Description |
|---|---|---|---|
| — | — | Workspace resource URI (e.g., //chat.googleapis.com/spaces/SPACE_ID) |
| — | — | Comma-separated CloudEvents types to subscribe to |
| — | — | GCP project ID for Pub/Sub resources |
| — | — | Existing Pub/Sub subscription name (skip setup) |
| — | 10 | Max messages per pull batch (default: 10) |
| — | 5 | Seconds between pulls (default: 5) |
| — | — | Pull once and exit |
| — | — | Delete created Pub/Sub resources on exit |
| — | — | Don't auto-acknowledge messages |
| — | — | Write each event to a separate JSON file in this directory |
gws events +subscribe --target '//chat.googleapis.com/spaces/SPACE' --event-types 'google.workspace.chat.message.v1.created' --project my-project
gws events +subscribe --subscription projects/p/subscriptions/my-sub --once
gws events +subscribe ... --cleanup --output-dir ./events[!CAUTION] This is a write command — confirm with the user before executing.