Fix review findings mechanically
godot_fixApply mechanical Godot 4 review fixes line by line instead of editing findings manually. Shows changes by default, writes safe or check-labelled fixes when enabled, then re-reviews the result.
Instructions
Apply the mechanical fixes for review findings instead of editing them one by one: api/coroutine-without-await, api/freed-check-order, api/get-meta-null-default, api/image-unit-bool, api/infer-variant, api/multimesh-format-after-count, api/packed-element-write, api/shader-removed-builtin, api/shader-renamed, api/timer-start-outside-tree, api/upgrade-area-mask, api/upgrade-mesh-skeleton, quality/mojibake, quality/packed-setter-skipped, quality/standalone-ternary, quality/string-signal, structure/duplicate-uid, structure/invalid-uid, structure/locked-instance-edit, structure/uid-path-mismatch, structure/unknown-uid, structure/unused-resource. Each fix rewrites only the line a finding points to, only when it looks exactly as expected, and is labelled safe (it only removes the problem, e.g. a freed check put first, emit_signal() as signal.emit(), Timer.start() after add_child(), a stale uid set from its path, a lost .uid restored, an unused resource section removed) or check (it changes more: an await that makes the caller a coroutine, a guessed type, a uid that named another file, [editable] added, a setter that runs again). Without write it shows the changes; with write: true it applies them and reviews the changed files again, returning what is left. Only safe fixes unless include_check: true. Lines it cannot fix are listed with the reason. Run godot_review first and godot_check after writing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "godot_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | release the project comes from, as in godot_review | |
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| files | No | only these res:// files | |
| rules | No | only these rules (the fixable ones are listed above) | |
| write | No | write the fixes (default false: show them only) | |
| detail | No | brief (capped lists) or full (everything); default full | |
| stamp_uids | No | also give scenes, resources, scripts and shaders without a uid a new one (header or .uid file) | |
| include_check | No | also apply fixes labelled check (default false) |