Which commit broke it
godot_bisectFinds the first commit that introduced a review finding by rule, file, or message by bisecting history offline, then returns the bad and last good commits with the diff to inspect.
Instructions
Finds the first commit that has a problem, offline and without touching the working tree: reviews the project as it was at each commit (a copy from git in a temp folder) and halves the range. The problem is a review finding: of a rule (rule: "api/unknown-member"), in a file, with words in its message, or with none of these any finding of severity error. Give good (a commit known to be without it) or leave it out: history is then searched backwards 1, 2, 4, 8 ... commits. Returns the first bad commit and the last good one, the findings there, the files that commit changed (the finding is often in a file it did not touch: it removed something that file uses) and the godot_diff call to read the change. Use it when something that worked no longer does and many commits lie in between, instead of reading every diff.
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_bisect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bad | No | a commit that has the problem (default HEAD; uncommitted changes are not searched) | |
| max | No | how many commits to look back when good is not given (default 200) | |
| file | No | the problem is a finding in this res:// file | |
| good | No | a commit known to be without it, e.g. main or HEAD~30 (default: search backwards) | |
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| rule | No | the problem is a finding of this review rule, e.g. api/unknown-member | |
| text | No | the problem is a finding whose message holds this text |