create_script
Creates a new GDScript file in a Godot project, supporting templates for common node types.
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": {
"projectPath": "<projectPath>",
"scriptPath": "<scriptPath>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scriptPath | Yes | Path where the script will be saved (relative to project) | |
| template | No | Optional template type: empty, node2d, node3d, control, character2d, character3d | |
| className | No | Optional class name for the script |