Add block
add-block-toolAdd a new block of the given type to a form's draft. The block is created with sensible defaults — use update-block-tool afterwards to set its title, options, and settings. Returns the new block including its id. To add an ENDING page (thank-you / result screen where the form finishes) pass type "text" with is_thank_you true: it is appended after the last question and flagged is_last. Outcome quizzes need one ending page per outcome; a plain statement is NOT an ending — respondents would click through it into the next page.
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>",
"type": "<type>"
},
"name": "add-block-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The block type — must be an exact key from list-block-types-tool (e.g. input, textarea, email, phone, radio, dropdown, checkbox, star_rating). | |
| group_id | No | Optional multi-question page id to append this question inside that group. Create the group first with type group. | |
| form_slug | Yes | The form's slug. | |
| is_thank_you | No | True to create an ending page (the form finishes here). Use type "text". Ignored for after_block_id; endings always go last. | |
| after_block_id | No | Optional id of the block to insert after. Omit to append before the thank-you screen. |