move event block
move_event_blockMove an event block and its branches to a new position in the same list, adjusting indentation. Preview the change set first or apply it after validation.
Instructions
Move a block (with its branches) to another position in the same list; indentation is adjusted. Requires the list revision.
Preview-first: returns a change set (semantic + native diff, validation). Pass apply=true to commit immediately when the preview is clean.
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": {
"revision": "<revision>",
"blockId": "<blockId>",
"position": "<position>"
},
"name": "move_event_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Commit right after a successful preview (non-destructive operations only; needs --allow-write; warnings also need acknowledgeWarnings). Default false = preview only. | |
| mapId | No | Map ID (map event page target) | |
| blockId | Yes | ||
| eventId | No | Map event ID (map event page target) | |
| troopId | No | Troop ID (troop battle page target) | |
| position | Yes | Where to insert: {before:id} | {after:id} | {parentId, branch, index}. Inserting into the "else" branch of a conditional without one creates it. | |
| revision | Yes | Revision token of the command list from get_event_logic / get_event_page (rejects stale block ids) | |
| pageIndex | No | ZERO-based page index (map event or troop page) | |
| allowScript | No | true ONLY if the user explicitly asked to insert JavaScript (script commands, script conditions/operands, route scripts). | |
| description | No | Optional description stored in the transaction log | |
| commonEventId | No | Common event ID (common event target) | |
| acknowledgeWarnings | No | Accept validation warnings when apply=true. Review them with the user first. |