googleworkspace avatar

Gws Events

A straightforward wrapper around Google Workspace Events API that lets you subscribe to real-time notifications from Gmail, Drive, Calendar, and other Workspace apps. You can create subscriptions, stream events as NDJSON, and manage subscription lifecycles without wrestling with OAuth flows or webhook endpoints. The helper commands make it easy to set up event streams and renew expiring subscriptions. Most useful for building automation workflows that react to document changes, new emails, or calendar updates. Requires the gws CLI and proper Workspace admin permissions, but once configured it handles the streaming complexity for you.

skills.sh installs
32.1K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill gws-events --agent claude-code

Installs into .claude/skills of the current project.

Files

events (v1)

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

gws events <resource> <method> [flags]

Helper Commands

CommandDescription
+subscribeSubscribe to Workspace events and stream them as NDJSON
+renewRenew/reactivate Workspace Events subscriptions

API Resources

message

  • stream — SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.

operations

  • get — Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

subscriptions

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1googleworkspace avatarpersona-researchergoogleworkspace/cliOrganize research — manage references, notes, and collaboration.32Kskills.sh installs
2googleworkspace avatarrecipe-create-gmail-filtergoogleworkspace/cliCreate a Gmail filter to automatically label, star, or categorize incoming messages.32Kskills.sh installs
3googleworkspace avatarrecipe-save-email-attachmentsgoogleworkspace/cliFind Gmail messages with attachments and save them to a Google Drive folder.31.8Kskills.sh installs
4googleworkspace avatarrecipe-backup-sheet-as-csvgoogleworkspace/cliExport a Google Sheets spreadsheet as a CSV file for local backup or processing.31.7Kskills.sh installs
5googleworkspace avatarrecipe-organize-drive-foldergoogleworkspace/cliCreate a Google Drive folder structure and move files into the right locations.31.7Kskills.sh installs
6googleworkspace avatarpersona-exec-assistantgoogleworkspace/cliManage an executive's schedule, inbox, and communications.31.6Kskills.sh installs