create event page
create_event_pageAdds a page to an RPG Maker MZ event, previewing the page definition and validation before committing changes. Use it to extend event logic with new conditions or blocks.
Instructions
Add a page to an event (appended by default). Remember: the engine activates the highest-numbered page whose conditions are met.
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": {
"mapId": "<mapId>",
"eventId": "<eventId>"
},
"name": "create_event_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Event page definition: {settings?, blocks?} | |
| apply | No | Commit right after a successful preview (non-destructive operations only; needs --allow-write; warnings also need acknowledgeWarnings). Default false = preview only. | |
| mapId | Yes | Map ID (from list_maps) | |
| eventId | Yes | Map event ID | |
| insertAt | No | ZERO-based index to insert at (default: end) | |
| 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 | |
| acknowledgeWarnings | No | Accept validation warnings when apply=true. Review them with the user first. |