node_create
Create a new node in the Godot scene tree by specifying its type or instantiating a PackedScene from a file path. Add it to a parent path relative to the edited scene root.
Instructions
Create (spawn) a new node in the scene tree.
Creates a node of the given type and adds it to the parent, or
instantiates a PackedScene from scene_path. type and scene_path
are mutually exclusive — when scene_path is given, type is ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name; Godot auto-names if empty. | |
| type | No | Godot node class (e.g. "Node3D", "MeshInstance3D"). | |
| scene_file | No | Optional editor-scene guard (EDITED_SCENE_MISMATCH). | |
| scene_path | No | Optional res:// path of a PackedScene to instantiate. | |
| session_id | No | Optional Godot session to target. Empty = active session. | |
| parent_path | No | Parent path relative to the edited scene root (e.g. "/Main"), NOT runtime "/root/...". Empty = scene root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||