Create resource
godot_create_resourceCreate GDScript, C#, scene, or generic resource files from templates in a Godot project. Optionally overwrite existing files.
Instructions
Create a new resource from a template: a GDScript (gdscript) or C# (csharp) script, a scene (scene) or a generic resource (resource). Fails if the target exists unless overwrite=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | For scripts: the class to extend (e.g. "Node2D"). For scenes: ignored. | |
| kind | Yes | What to create. | |
| resource | Yes | A resource path, e.g. "res://main/player.tscn" or "main/player.tscn". | |
| overwrite | No | Overwrite an existing file. | |
| root_name | No | For scenes: the root node name. | |
| root_type | No | For scenes: the root node type (default "Node2D"). | |
| class_name | No | For scripts: an optional class_name to declare. | |
| project_root | No | Path to the Godot project root (folder containing project.godot). Defaults to $GODOT_PROJECT_ROOT or an upward search from the working directory. |