batch_scene_operations
Perform multiple scene operations (add node, load sprite, save) in one batch to reduce Godot startup overhead and share scene cache.
Instructions
Use this instead of chaining add_node / load_sprite / save_scene calls when you have multiple mutations on the same or related scenes — runs in one Godot process (~3s startup avoided per call) and shares an in-memory scene cache, saving once at the end. Each item picks its sub-operation (add_node, load_sprite, save) and supplies its own params; abortOnError stops on first failure (default false continues). Returns: results[] in input order, each tagged with operation and scenePath plus success or error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | Ordered list of scene operations. Each item has its own operation and scenePath. | |
| projectPath | Yes | Path to the Godot project directory | |
| abortOnError | No | Stop processing on first error (default: false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No |