Create GDScript
godot_create_scriptCreate a new GDScript file for a Godot 4.x project, defining class name, parent node, exports, signals, and custom functions. Set up scripts with optional _ready() inclusion and custom project path.
Instructions
Create a new GDScript file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exports | No | List of exports (format: [{"name": "var_name", "type": "int"}]) | |
| extends | No | Class to extend (default: Node) | Node |
| signals | No | List of signals (format: [{"name": "signal_name", "params": "value"}]) | |
| functions | No | List of custom functions | |
| class_name | Yes | Name for the new class | |
| project_path | No | Optional project root path | |
| include_ready | No | Include _ready() function (default: True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |