add_troop_page
Append or insert a battle-event page into an existing RPG Maker MZ troop without resending other pages. Validates structure, allows optional position, force override, or dry-run preview.
Instructions
Append one battle-event page (e.g. the page from build_troop_page) to an existing troop without re-sending its other pages; position inserts it at that 0-based page index instead (the first page whose conditions hold runs, so order matters when triggers overlap). A structurally invalid page refuses the write (nothing is saved) — pass force: true to override; an HP condition on a troop slot past the troop's members, or a page with no condition enabled, is warned (never blocked). Returns { troop, pageIndex, warnings? }; fill it further with insert_event_commands target "troop_page".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | A troop battle-event page, e.g. the `page` from build_troop_page | |
| force | No | Write even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block regardless. | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| troopId | Yes | The troop to add the page to | |
| verbose | No | Echo the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/conditions you would only re-read. Read the full record with the matching get_* tool. | |
| position | No | 0-based page index to insert at (default: append) |