write_script
Write or update a Godot script file by specifying its path and new content. Optionally creates a backup before overwriting.
Instructions
Write content to a 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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to script file (relative to project root) | |
| content | Yes | New file content | |
| create_backup | No | Create .bak backup (default: true) |