Apply several tool calls or none of them
batchExecute an ordered list of RPG Maker MZ tool calls as one transaction; invalid arguments or a failed step roll back every file write to its prior bytes.
Instructions
Run a list of {tool, args} calls in order as one transaction. If a step fails — or is rejected before it runs, because the arguments do not match what that tool declares — every file the batch wrote goes back to the bytes it had before, so a bad argument on step four never leaves a half-built map behind. Each step's arguments are validated against that tool's own schema first, so the whole list is checked for the obvious mistakes before anything is written. Reading tools may be included and their results come back per step. undo_writes, rollback_data and a nested batch are refused as steps: they move the write journal this transaction rolls back against. Steps that talked to the running game are named in the reply, because a file rollback cannot un-press a key — follow it with live_reload or a new game.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | ||
| stopOnFailure | No | Stop at the first failing step (default), or run the rest and still roll everything back |