edit_script
Overwrite an existing GDScript file with new source code using its res:// path to update scripts in a Godot project.
Instructions
Overwrite the content of an existing GDScript 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": {
"path": "<path>",
"content": "<content>"
},
"name": "edit_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | res:// path of the script | |
| content | Yes | New source code content |