batch_scene_operations
Run multiple scene mutations (add nodes, load sprites, set properties, save scenes) in one process, saving each mutated scene at the end. Use instead of chaining single tools, with abort-on-error control.
Instructions
Run several scene mutations in one process; every mutated scene is saved at the end. Use instead of chaining add_node, load_sprite, set_node_properties or save_scene. Each item sets operation (save stands for save_scene) and takes that tool's params. abortOnError stops at the first failure; later items return skipped: true. Returns: results[] in input order: operation, scenePath, success, error or skipped, plus the operation's own fields. Errors while a runtime session is live on this project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"operations": "<operations>"
},
"name": "batch_scene_operations"
}
}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 | Yes | ||
| warnings | No |