create_script
Create a new GDScript file in your Godot project by specifying the relative script path and providing the full source code content.
Instructions
Create a new GDScript (.gd) file with content
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>",
"content": "<content>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to Godot project | |
| scriptPath | Yes | Script path relative to project (e.g. scripts/player.gd) | |
| content | Yes | Full GDScript source code content |