add_node
Add a new node to a Godot scene by specifying node type, name, and optional properties for game development.
Instructions
Add a new node to an existing scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scenePath | Yes | Scene to modify | |
| nodeType | Yes | Godot node class (e.g. Sprite2D, CollisionShape2D, Camera2D) | |
| nodeName | Yes | Name for the new node | |
| parentNodePath | No | Path of parent node (default: . = root) | |
| properties | No | Optional node properties as key=GDScript-value pairs (e.g. {"position": "Vector2(100, 200)"}) |