Update an item
update_questionUpdates an existing item (question or other) via batchUpdate updateItem. The item is addressed by its 0-based index — call get_form first to see current positions and the item's current shape.
Instructions
Updates an existing item (question or other) via batchUpdate updateItem. The item is addressed by its 0-based index — call get_form first to see current positions and the item's current shape. item is a raw Forms API Item object with the new values; update_mask names the fields to replace, e.g. "title" or "title,questionItem.question.required". Only masked fields change; masking a field the item object leaves unset clears it.
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>",
"index": "<index>",
"item": "<item>",
"update_mask": "<update_mask>"
},
"name": "update_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The Forms API Item object with the new values, e.g. {"title":"New title","questionItem":{"question":{"required":true}}}. | |
| index | Yes | 0-based position of the item to update (from get_form). | |
| 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. | |
| update_mask | Yes | Comma-separated field paths to replace, e.g. "title,questionItem.question.required". |