create_script
Creates a GDScript file in a Godot project. Generates a template script with a specified base class and empty _ready(), or writes your full source when provided.
Instructions
Create a GDScript file. Without content, writes a template with the given extends type and an empty _ready().
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": {
"project": "<project>",
"script_path": "<script_path>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Full script source; overrides the template | |
| extends | No | Base class, default "Node" | |
| project | Yes | Project folder name under the projects directory | |
| script_path | Yes | Script path relative to the project, e.g. "scripts/player.gd" |