Add a node to a scene
add_nodeAdd a node to an existing Godot scene, set its properties by name, load res:// resources, and save the scene.
Instructions
Add a node to an existing scene and save it. Properties are set by name, e.g. {"position": {"x": 10, "y": 20}}; strings starting with res:// are loaded as resources.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeName | Yes | Name of the new node. | |
| nodeType | Yes | Node class, e.g. Sprite2D, CollisionShape2D, Label, or a class_name from the project. | |
| scenePath | Yes | The scene to change, e.g. "res://main.tscn". | |
| properties | No | Property values to set on the new node. | |
| projectPath | No | Folder containing project.godot. Optional: defaults to the project Claude Code is running in. | |
| parentNodePath | No | Parent node: "root" (default) or a path like "root/Player". |