Manage push-notification watches
manage_watchesSet up and manage Cloud Pub/Sub push notifications for Google Forms. Create watches for new responses or schema changes, list active watches, renew expiring ones, or delete them.
Instructions
Manages Cloud Pub/Sub push-notification watches on a form. action=create needs event_type (RESPONSES = new submissions, SCHEMA = form structure changes) and topic_name; the topic must live in your Cloud project and grant the Pub/Sub Publisher role to forms-notifications@system.gserviceaccount.com. action=list shows your watches; delete and renew need watch_id. Watches expire after 7 days — renew extends 7 days from now and reactivates a SUSPENDED watch. Notifications carry only formId/watchId/eventType attributes (no payload): on RESPONSES call list_responses with submitted_after, on SCHEMA call get_form. Limits: 1 watch per user per form+event type, 20 per Cloud project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do with the form's watches. | |
| form_id | Yes | The form id — the long id from the form URL (docs.google.com/forms/d/<formId>/edit) or from create_form output. | |
| watch_id | No | delete/renew: the watch to target. create: optional custom id (auto-generated if omitted). | |
| event_type | No | create only: RESPONSES (new submissions) or SCHEMA (form structure/settings changes). | |
| topic_name | No | create only: the Cloud Pub/Sub topic, e.g. projects/my-project/topics/forms-events. |