update_script
Overwrite the content of an existing script file in a Godot project. Specify project path, script path, and new full content.
Instructions
Update/overwrite the contents of an existing script 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": {
"projectPath": "<projectPath>",
"scriptPath": "<scriptPath>",
"content": "<content>"
},
"name": "update_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| scriptPath | Yes | Script path relative to project | |
| content | Yes | New full content for the script |