scene-node-delete
Remove a node and its children from a Godot scene to clean up unused elements. Automatically saves the scene unless saveScene is set to false.
Instructions
[compact alias of delete_node] Removes a node and all its children from a scene. Use to clean up unused nodes. Cannot delete root node. Scene is saved automatically unless saveScene=false.
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>",
"scenePath": "<scenePath>",
"nodePath": "<nodePath>"
},
"name": "scene-node-delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. | |
| scenePath | Yes | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") | |
| nodePath | Yes | Path to node to delete (e.g., "Player/OldSprite", "Enemies/Enemy1") | |
| saveScene | No | If true (default), saves scene after deletion. Set false for batch operations. |