Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
scene_to_instantiateYesres:// path to the .tscn to instance
parent_pathYesParent node path in the target scene
node_nameNoOverride instance name
target_scene_pathNoScene to add the instance to. Omit for active scene.
propertiesNoProperty overrides on the instance root node

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ricky-yosh/godot-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server