create_script
Generate a new GDScript file using a safe starter template, with options for script body, base class, and overwriting existing files.
Instructions
Create a GDScript file with a safe starter 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": {
"scriptPath": "<scriptPath>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| extends | No | Node | |
| overwrite | No | ||
| scriptPath | Yes | ||
| projectPath | No | Optional absolute Godot project path. Defaults to the project selected in Godot MCP Toolkit. |