create_scene
Create a new Godot scene file with a single root node. Specify project path, scene path, and optional root node type (Node2D, Node3D, or Control).
Instructions
Create a new Godot scene file with a single root node. Writes a fresh .tscn at scenePath. Use when starting a new scene from scratch; for adding nodes to an existing scene, use add_node. rootNodeType defaults to Node2D — pass "Node3D" for 3D scenes or "Control" for UI. Saves automatically. Overwrites silently if the file already exists. Returns { success, scenePath } as JSON text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path relative to the project (e.g. "scenes/main.tscn") | |
| rootNodeType | No | Root node type (default: Node2D) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| scenePath | No |