create_script
Create new GDScript files in Godot projects with custom content or a default template.
Instructions
Create a new GDScript file with optional content or default 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": {
"projectPath": "<projectPath>",
"scriptPath": "<scriptPath>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Optional: full script content. If omitted, a default template is generated | |
| scriptPath | Yes | Path where the script will be saved (relative to project) | |
| projectPath | Yes | Path to the Godot project directory | |
| extendsClass | No | Optional: base class for the default template (default: Node) |