append event blocks
append_event_blocksAdd event command blocks to the end of map pages, common events, or troop pages. Preview validation and diffs first, then apply when clean.
Instructions
Append Event IR blocks at the end of a command list (map page, common event or troop page). No revision needed.
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": {
"blocks": "<blocks>"
},
"name": "append_event_blocks"
}
}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) | |
| blocks | Yes | Event IR blocks (see resource rpgmz://docs/event-ir or get_event_ir_reference) | |
| eventId | No | Map event ID (map event page target) | |
| troopId | No | Troop ID (troop battle page target) | |
| 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. |