Forms Set Form Publish Settings
forms_set_form_publish_settingsPublish or unpublish a Google Form and open or close it to responses by setting its publish state, so you can control whether the form is live and accepting submissions.
Instructions
Publish or unpublish a Google Form, or open and close it for responses. For questions and form info use forms_batch_update_form (extended tool tier); the form_id comes from drive_list_files, search_workspace or forms_create_form. Returns status ok, form_id, published and accepting_responses as they stand after the call. Legacy forms, whose forms_get_form result has null published, do not support this.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"form_id": "<form_id>",
"publish_settings": "<publish_settings>"
},
"name": "forms_set_form_publish_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | Google Forms form ID: the Drive file ID, also the long ID in the form's edit URL (not the responder URL). | |
| update_mask | No | Which publishSettings fields to write: 'publishState' or '*' (all fields, the default). | * |
| publish_settings | Yes | Forms API publishSettings object, e.g. {"publishState": {"isPublished": true, "isAcceptingResponses": true}}. Set both fields of publishState; isAcceptingResponses true with isPublished false is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Machine-readable operation status. | |
| form_id | No | ||
| published | No | ||
| accepting_responses | No |