add_node
Adds a child node to a Godot scene at a specified parent path, using the selected class type and optional properties, to extend or modify the scene structure.
Instructions
Adds a child node to an existing scene at the given parent path (use "." for the scene root).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | Godot node class, e.g. "Sprite2D", "CollisionShape2D" | |
| properties | No | Raw property assignments, e.g. { "position": "Vector2(10, 20)" } | |
| scene_path | Yes | ||
| parent_path | Yes | Path of the parent node, e.g. "." or "Player" or "Player/Sprite2D" | |
| script_path | No | If set, attaches this .gd script to the new node (path relative to project_path) | |
| project_path | Yes |