update_finding
Change fields of a code review finding, such as severity, title, body, or location. Updating location checks the diff and reopens outdated findings.
Instructions
Change the fields of one finding: severity, kind, title, body, location, suggestion or prompt. A new location is checked against the diff and reopens an outdated finding; path null removes the location. Whether a finding is ignored is the reviewer's decision and cannot be changed here.
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": {
"analysis_id": "<analysis_id>",
"finding_id": "<finding_id>"
},
"name": "update_finding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | New explanation. | |
| kind | No | issue or requirement_gap. | |
| path | No | Path of a changed file of the analysis, relative to the repository root, as listed by get_diff. Give it with start_line to move the finding; null removes the location (requirement_gap only). | |
| title | No | New title. | |
| prompt | No | Prompt to hand back to the agent for this finding, replacing the generated one (body, current lines, replacement) in the review feedback. null clears it. | |
| end_line | No | Last targeted line, inclusive (default: start_line). | |
| severity | No | Severity: critical, major, minor, trivial (from most to least serious). | |
| finding_id | Yes | Id of the finding, as shown by get_analysis. | |
| start_line | No | First targeted line. Line numbers are NEW-side numbers, as shown in the second column of get_diff. | |
| suggestion | No | Replacement text proposed for the targeted lines, kept verbatim (indentation included); an empty string proposes deleting them. Displayed to the reviewer only: nothing is written to the repository. Needs a location. null clears it. | |
| analysis_id | Yes | Id of the analysis, as returned by create_analysis or list_analyses. |