instantiate_scene
Add a packed scene as a child node in a Godot project, automatically handling resource references for efficient scene composition.
Instructions
Instantiate a packed scene (sub-scene) as a child node inside another scene. Adds the ext_resource entry automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"subScenePath": "<subScenePath>"
},
"name": "instantiate_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scenePath | Yes | Scene to add the instance into | |
| subScenePath | Yes | Packed scene to instantiate (e.g. res://enemies/Slime.tscn) | |
| parentNodePath | No | Parent node path (default: . = root of the scene) | |
| nodeName | No | Name for the instance node (defaults to scene filename without extension) |