# Gws Events > Suscríbete a eventos de Google Workspace. Fuente: https://skillsagentes.com/skills/googleworkspace/cli/gws-events Markdown: https://skillsagentes.com/skills/googleworkspace/cli/gws-events.md Repositorio: https://github.com/googleworkspace/cli Autor: googleworkspace Licencia: Apache-2.0 Actualizado: hace 6 meses Coste de contexto: 9 tok instalada, 880 tok al activarse, 880 tok con todos los archivos del bundle Bundle: 1 archivo, 3 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add googleworkspace/cli --skill gws-events --agent claude-code # Cursor npx -y skills add googleworkspace/cli --skill gws-events --agent cursor # Codex npx -y skills add googleworkspace/cli --skill gws-events --agent codex # Gemini CLI npx -y skills add googleworkspace/cli --skill gws-events --agent gemini # Windsurf npx -y skills add googleworkspace/cli --skill gws-events --agent windsurf # Cline npx -y skills add googleworkspace/cli --skill gws-events --agent cline ``` ## Qué hace - Ejecuta comandos CLI de `gws events` sobre recursos como subscriptions, tasks, operations y message - Crea, obtiene, lista, actualiza, elimina y reactiva suscripciones a eventos de Google Workspace - Permite inspeccionar métodos con `gws schema events..` antes de invocarlos ## Cuándo usarla - Se necesita suscribirse a eventos de Google Workspace o gestionar suscripciones existentes - Hay que consultar o cancelar tareas (`tasks`) o el estado de operaciones de larga duración ## Qué la activa - "Crea una suscripción a eventos de Google Workspace" - "Lista mis suscripciones activas de Workspace Events" - "Reactiva la suscripción suspendida con id X" - "Consulta el estado de esta operación de larga duración" ## Antes de instalar - Requiere el binario `gws` y haber leído `../gws-shared/SKILL.md` para autenticación, flags globales y reglas de seguridad. ## Archivos - SKILL.md — 3 KB ## SKILL.md Reproducido tal cual desde googleworkspace/cli bajo Apache-2.0. Esta sección es el documento original y está en inglés. # 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 [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.. ``` Use `gws schema` output to build your `--params` and `--json` flags. ## Dónde encaja - Categoría: [Productividad](https://skillsagentes.com/categorias/productividad.md) — Planificación, toma de notas y automatización de flujos personales. - Creador: [googleworkspace](https://skillsagentes.com/creators/googleworkspace.md) — 95 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)