create_script
Create a Godot script from a template by setting the output path, choosing GDScript or C#, and selecting a template type.
Instructions
Create a new script from template.
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>",
"type": "<type>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Output path (relative to project root, e.g. "scripts/enemy.gd") | |
| type | Yes | Script language | |
| template | No | Template type | node_script |
| class_name | No | Optional class_name for GDScript |