Batch
batchExecute multiple Unity Editor commands in a single call, with atomic rollback on failure and configurable error handling and timeout.
Instructions
Execute multiple commands in one call. Use for 2+ ops — reads AND writes. commands: one per line (cmd key=value). on_error: continue|stop (default continue). timeout: seconds (default 75). atomic: True reverts ALL prior ops on first failure (Unity Undo); execute_code fs side-effects NOT reverted. PREFER over individual tool calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atomic | No | True = revert ALL prior ops on first failure via Unity Undo (fs side-effects not reverted) | |
| timeout | No | Total timeout in seconds (default 75) | |
| commands | Yes | One command per line (e.g. 'get_component path=/Player type=Transform') | |
| on_error | No | Error behavior: continue (default) | stop — stop aborts remaining commands | continue |
| validate_aliases | No | Dry-run alias validation before executing any mutations |