generate_tscn_scene
Convert a JSON scene tree into a Godot 4 .tscn file, with resources, sub-resources, groups, node properties, and optional scene instances.
Instructions
Generate a Godot 4 text scene (.tscn) from a JSON scene tree, resources, sub-resources, groups, node properties, and optional scene instances.
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>",
"scene": "<scene>"
},
"name": "generate_tscn_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | Scene data containing root, optional resources, optional subResources, and nested children. | |
| overwrite | No | Replace an existing scene. Defaults to false. | |
| scenePath | Yes | Path to the .tscn file relative to projectPath. | |
| projectPath | Yes | Absolute path to a directory containing project.godot. |