Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Google

gws-events — Claude Code skill: what it does, how to install

This skill gives an agent Google Workspace Events commands for subscriptions, operations, and task update streams. Use it when Workspace events need to be managed through gws.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add googleworkspace/cli --skill gws-events -a claude-code
Open on GitHub

What gws-events does

gws-events adds Google Workspace Events commands to an agent. With gws events [flags], it can create, inspect, update, renew, reactivate, and delete subscriptions. The skill also covers task operations and streaming updates.

The skill describes the message, operations, subscriptions, and tasks resources, plus the +subscribe and +renew helpers. Before a method call, the agent can inspect gws events --help, then check required parameters with gws schema events.. and build the --params and --json flags.

You need the gws CLI and the shared gws-shared skill for authentication, global flags, and security rules. Install this skill when an agent must manage Workspace event subscriptions; it is unnecessary for ordinary Workspace requests.

What it helps with

  • create a Google Workspace event subscription
  • list current Workspace subscriptions
  • renew or reactivate a suspended subscription
  • stream task status updates
  • poll a long-running operation

Example prompts for the agent

  • Show the available resources with `gws events --help`, then create a subscription for the required resource.
  • Inspect `gws schema events.subscriptions.create` and prepare the call with `--params` and `--json`.
  • List subscriptions and check an operation through the `subscriptions` and `operations` resources.

How to install gws-events

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill gws-events -a claude-code

2Manually: put the files in place

~/.claude/skills/gws-events/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gws-events/

From the same set95

The whole set →
gws-gmail official googleworkspace This skill hands your agent Gmail: send mail, read the inbox, reply in a thread. Useful when email work already runs through the gws CLI. Claude Code CX Codex Cursor +1 81,900installs gws-gmail-send official googleworkspace A skill that teaches your agent to send Gmail from the terminal: recipients, subject, body, attachments and drafts. Claude Code CX Codex Cursor +1 74,700installs gws-drive official googleworkspace This skill hands your agent Google Drive through the gws CLI: files, folders, shared drives, comments and access requests. Useful when docs move through code. Claude Code CX Codex Cursor +1 74,500installs gws-shared official googleworkspace This skill gives agents shared rules for gws CLI authentication, flags, and output formats. Use it when working with gws commands. Claude Code CX Codex Cursor +1 66,000installs gws-calendar official googleworkspace Manage Google Calendar events, access rules, and schedules through the gws CLI tool. Claude Code CX Codex Cursor +1 61,100installs gws-sheets official googleworkspace This skill lets an agent read and edit Google Sheets through the CLI. Use it when a coding workflow needs spreadsheet data or table updates. Claude Code CX Codex Cursor +1 58,800installs gws-docs official googleworkspace This skill lets an agent read and update Google Docs through gws. Use it when document changes should happen from an agent chat. Claude Code CX Codex Cursor +1 58,300installs gws-sheets-read official googleworkspace Reads cell values and sheets from Google Spreadsheets via CLI. Useful when an agent needs spreadsheet data without risk of altering it. Claude Code CX Codex Cursor +1 50,600installs

Similar

Questions about gws-events

How do I install gws-events in Claude Code?

Run npx skills add googleworkspace/cli --skill gws-events -a claude-code. The skill file is placed at ~/.claude/skills/gws-events/SKILL.md.

What does gws-events do?

It gives an agent Google Workspace Events commands for subscription management, long-running operations, and streaming task updates through gws.

What does gws-events require?

It requires the gws CLI and the shared gws-shared skill, which provides authentication, global flags, and security rules.

Source text

SKILL.md · Apache-2.0
---
name: gws-events
description: "Subscribe to Google Workspace events."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws events --help"
---

# events (v1)

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

```bash
gws events <resource> <method> [flags]
```

## Helper Commands

| Command | Description |
|---------|-------------|
| [`+subscribe`](../gws-events-subscribe/SKILL.md) | Subscribe to Workspace events and stream them as NDJSON |
| [`+renew`](../gws-events-renew/SKILL.md) | 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

  - `create` — Creates a Google Workspace subscription. To learn how to use this method, see [Create a Google Workspace subscription](https://developers.google.com/workspace/events/guides/create-subscription).
  - `delete` — Deletes a Google Workspace subscription. To learn how to use this method, see [Delete a Google Workspace subscription](https://developers.google.com/workspace/events/guides/delete-subscription).
  - `get` — Gets details about a Google Workspace subscription. To learn how to use this method, see [Get details about a Google Workspace subscription](https://developers.google.com/workspace/events/guides/get-subscription).
  - `list` — Lists Google Workspace subscriptions. To learn how to use this method, see [List Google Workspace subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions).
  - `patch` — Updates or renews a Google Workspace subscription. To learn how to use this method, see [Update or renew a Google Workspace subscription](https://developers.google.com/workspace/events/guides/update-subscription).
  - `reactivate` — Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).

### 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:

```bash
# 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.

© googleworkspace · Apache-2.0 · googleworkspace/cli

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor