create_scene
Create a new Godot scene file with one root node (Node2D, Node3D, or Control) to start a scene from scratch and save it at a project-relative path.
Instructions
Create a new scene file with a single root node, written to scenePath. Use to start a scene from scratch; to add nodes to an existing scene use add_node. rootNodeType defaults to Node2D: pass "Node3D" for 3D or "Control" for UI. Saves automatically and overwrites an existing file silently. Returns: the scenePath that was written. Errors while a runtime session is live on this project.
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>"
},
"name": "create_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Scene file path relative to the project (e.g. "scenes/main.tscn") | |
| projectPath | Yes | Path to the Godot project directory | |
| rootNodeType | No | Root node type (default: Node2D) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warnings | No | ||
| scenePath | Yes | Project-relative path of the scene file that was written. |