edit_script
Apply targeted edits to Godot scripts: replace text patterns, rewrite line ranges, replace entire file content, or insert new lines.
Instructions
Edit a script file using exactly one mode: replacements list, content+start_line line-range replace, content alone full replace, or insert_at_line+text
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>"
},
"name": "edit_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| text | No | ||
| force | No | ||
| content | No | ||
| end_line | No | ||
| start_line | No | ||
| replacements | No | ||
| insert_at_line | No |