# Recipe Watch Drive Changes > Subscribe to change notifications on a Google Drive file or folder. Source: https://skillsagentes.com/skills/googleworkspace/cli/recipe-watch-drive-changes Repository: https://github.com/googleworkspace/cli Author: googleworkspace License: Apache-2.0 Updated: hace 4 meses Context cost: 17 tok installed, 231 tok once triggered, 231 tok with every bundled file Bundle: 1 file, 922 B Permissions requested: none declared ## Install ```bash npx -y skills add googleworkspace/cli --skill recipe-watch-drive-changes --agent claude-code ``` ## What it does - Crea una suscripción a notificaciones de cambios sobre un archivo o carpeta de Google Drive mediante `gws events subscriptions create` - Permite listar las suscripciones activas con `gws events subscriptions list` - Renueva la suscripción antes de que expire con `gws events +renew --subscription SUBSCRIPTION_ID` ## Use it when - Cuando se necesita recibir notificaciones de cambios en un archivo o carpeta de Google Drive ## What triggers it - "Suscríbeme a los cambios de esta carpeta de Drive" - "Avísame cuando se actualice este archivo de Google Drive" - "Renueva mi suscripción de eventos de Drive antes de que expire" ## Before you install - Requiere el binario `gws` y cargar la skill `gws-events`. ## Files - SKILL.md — 922 B ## SKILL.md Reproduced verbatim from googleworkspace/cli under Apache-2.0. This section is the upstream document and is in English. # Watch for Drive Changes > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-events` Subscribe to change notifications on a Google Drive file or folder. ## Steps 1. Create subscription: `gws events subscriptions create --json '{"targetResource": "//drive.googleapis.com/drives/DRIVE_ID", "eventTypes": ["google.workspace.drive.file.v1.updated"], "notificationEndpoint": {"pubsubTopic": "projects/PROJECT/topics/TOPIC"}, "payloadOptions": {"includeResource": true}}'` 2. List active subscriptions: `gws events subscriptions list` 3. Renew before expiry: `gws events +renew --subscription SUBSCRIPTION_ID` --- Skills Agentes — https://skillsagentes.com/skills/googleworkspace/cli/recipe-watch-drive-changes