godot_instantiate_scene
Adds a pre-made scene as a child node to another scene in Godot, allowing you to reuse components like enemies, UI elements, or objects with custom properties.
Instructions
Instantiates an existing .tscn file as a child node inside another scene.
Args:
scene_to_instantiate (string): res:// path of the scene to instance e.g. "res://enemies/goblin.tscn"
parent_path (string): Node path of the parent in the target scene e.g. "/root/Main"
node_name (string, optional): Override the instance name. Defaults to the scene file's stem.
target_scene_path (string, optional): Scene that will receive the instance. Defaults to active scene.
properties (object, optional): Properties to override on the root node of the instance.
Returns: { name, type, path } of the instantiated node.
Examples:
Use when: "Add a Goblin enemy to the level at position (300, 100)" -> scene_to_instantiate: "res://enemies/goblin.tscn", parent_path: "/root/Level" properties: { "position": {"x": 300, "y": 100} }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_to_instantiate | Yes | res:// path to the .tscn to instance | |
| parent_path | Yes | Parent node path in the target scene | |
| node_name | No | Override instance name | |
| target_scene_path | No | Scene to add the instance to. Omit for active scene. | |
| properties | No | Property overrides on the instance root node |