create_script
Create a new GDScript file in your Godot project by providing the script path and source code, with an optional base class.
Instructions
Create a new GDScript file
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": {
"path": "<path>",
"content": "<content>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path for the new script (e.g. 'res://scripts/player.gd') | |
| content | Yes | GDScript source code | |
| base_class | No | Base class (e.g. 'CharacterBody2D') |