editor_create_script
Create a new GDScript at a specified path, opening it in the Godot editor. Choose a base class and template for empty, node, character, resource, or signal scripts.
Instructions
Create and open a new GDScript in the editor.
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>"
},
"name": "editor_create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Output path for new script | |
| extends | No | Base class | Node |
| template | No | Template: empty, node_script, character, resource_script, signal |