delete_nodes
Remove one or more nodes and their descendants from a Godot scene file. Provide node paths; the scene root cannot be deleted.
Instructions
Remove one or more nodes (and their descendants) from a scene file. Always-array: pass a single-element nodePaths array for one-off deletes. Saves once at the end. Cannot delete the scene root — that entry returns an error and the rest still process. Returns: results array with one entry per nodePath in input order (success or error message).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path relative to the project (e.g. "scenes/main.tscn") | |
| nodePaths | Yes | Node paths from scene root to delete (e.g. ["root/Player/Sprite2D"]) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No |