update_troop
Update troop properties (name, members, pages) in an RPG Maker MZ project. Validates enemy IDs, and prevents writes to structurally invalid battle-event pages unless force is true.
Instructions
Update a troop's properties (shallow merge). If members is provided, each enemyId is validated to exist. A structurally invalid battle-event page refuses the write (nothing is saved) — pass force: true to override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 ID of the troop to update | |
| updates | Yes | Object containing troop properties to update (name, members, pages) | |
| 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. |