Update block
update-block-toolUpdate a draft block. Send only the fields you want to change; omitted fields keep their current values. Changing type starts with the new type's defaults. Options, rows and columns replace their entire lists: preserve existing ids when editing labels; new items receive ids in the response. Only text blocks can be endings (is_last true), and at least one ending must remain. Use set-block-logic-tool to change rules or default_transition. Use add-block-tool with group_id to add questions inside a group; group membership cannot be changed here.
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_slug": "<form_slug>",
"block_id": "<block_id>",
"block": "<block>"
},
"name": "update-block-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | Yes | Fields to change, following the structure from get-form-tool / list-block-types-tool. Omitted fields are preserved; option/row/column lists are replaced. | |
| block_id | Yes | The id of the block to update, from get-form-tool. | |
| form_slug | Yes | The form's slug. |