Subscribes to change notifications on Google Drive files or folders via gws CLI and GCP Pub/Sub. Lists active subscriptions and renews them before expiry.
From google-workspacenpx claudepluginhub grailautomation/claude-plugins --plugin google-workspaceThis skill uses the workspace's default tool permissions.
PREREQUISITE: Load the following skills to execute this recipe:
gws-events
Subscribe to change notifications on a Google Drive file or folder.
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}}'gws events subscriptions listgws events +renew --subscription SUBSCRIPTION_ID