batch_scene_operations
Batch multiple scene mutations (add nodes, load sprites, save scenes) in one Godot process, sharing cache and saving at the end. Avoid multiple startup delays and repeated saves.
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 |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| operations | Yes | Ordered list of scene operations. Each item has its own operation and scenePath. | |
| abortOnError | No | Stop processing on first error (default: false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No |