Move question
move_questionMove an existing item (question, page break or display block) to a specific position by code. Choose either after or before, referencing another field's code. Move to the front: before references the current first field's code. Move to the end: after references the current last field's code.
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": {
"formId": "<formId>",
"code": "<code>"
},
"name": "move_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The field code to move (a question, a Breaker or a display block) | |
| after | No | Move after this code; choose either after or before | |
| before | No | Move before this code; choose either after or before | |
| formId | Yes | form ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | 0-based index after the move | |
| code | No | The question that was moved | |
| from | No | 0-based index before the move | |
| formId | No | The form that was edited | |
| changed | No | false when the question already sat at the target position | |
| position | No | Current index — returned instead of from/to when no move was needed | |
| questionCount | No | Total question / page-break count |