update_troop
Update troop properties with validation. Refuse writes with invalid enemy IDs or 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) |