Skip to content
Skillpedia
Automations32k · #6263

gws-events

Allows your agent to connect and receive notifications about Google Workspace events. Helps keep the agent updated with important information.

What it does

This tool lets you manage Google Workspace event notifications. You can create, view, update, or delete subscriptions to get alerts about what's happening in your accounts.

When to use it

  • ✓When you want to be notified about new Gmail messages.
  • ✓To know when a file is modified in Google Drive.
  • ✓To receive alerts about Google Calendar events.

Example of what to ask your AI

“I want to be notified whenever a new email arrives in my primary inbox.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/gws-events/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-events/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

You specify the type of event you want to track (like new messages), and the tool sets up Google Workspace to send you that information.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill gws-events

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-events/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

Command Description
+subscribe Subscribe to Workspace events and stream them as NDJSON
+renew Renew/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

tasks

  • cancel — Cancel a task from the agent. If supported one should expect no more task updates for the task.
  • get — Get the current state of a task from the agent.
  • subscribe — TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.
  • pushNotificationConfigs — Operations on the 'pushNotificationConfigs' resource

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws events --help

# Inspect a method's required params, types, and defaults
gws schema events.<resource>.<method>

Use gws schema output to build your --params and --json flags.

FAQ

What are 'subscriptions'?

Subscriptions are like an agreement for Google Workspace to alert you about certain occurrences.

Can I choose which events I want to receive?

Yes, you can specify the types of events that interest you.

How do I know if my notifications are working?

You can check the status of your subscriptions to ensure they are active and receiving events.

Details

Original description by the author

Subscribe to Google Workspace events.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6263
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills