write_script
Creates or overwrites a GDScript (.gd) file at a specified path within a Godot project, allowing direct script authoring from AI clients.
Instructions
Creates or fully overwrites a GDScript (.gd) file.
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": {
"project_path": "<project_path>",
"script_path": "<script_path>",
"content": "<content>"
},
"name": "write_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| script_path | Yes | e.g. scripts/Player.gd | |
| project_path | Yes |