recipe-watch-drive-changes

Subscribe to Google Drive file and folder changes via Pub/Sub notifications. Requires the gws-events skill and gws binary to execute Creates event subscriptions on Drive resources with configurable notification endpoints and payload options Supports subscription lifecycle management: create, list, and renew subscriptions before expiry Delivers change events (file updates) to Google Cloud Pub/Sub topics for downstream processing

INSTALLATION
npx skills add https://github.com/googleworkspace/cli --skill recipe-watch-drive-changes
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

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

  • 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}}'
  • List active subscriptions: gws events subscriptions list
  • Renew before expiry: gws events +renew --subscription SUBSCRIPTION_ID
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card