reflect_comment
Deterministically validates a positioned comment by checking line alignment and code existence in the diff, returning keep or drop without LLM calls.
Instructions
Deterministic validation of a positioned comment. Returns keep or drop. Does not call LLM. Three checks: line_in_hunk, existing_code_found, existing_code_in_diff.
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>",
"start_line": "<start_line>",
"end_line": "<end_line>"
},
"name": "reflect_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| repo | No | Repo path, default: cwd | |
| content | Yes | ||
| diff_ref | No | Default HEAD; pass from get_review_targets | |
| end_line | Yes | From position_comment | |
| start_line | Yes | From position_comment | |
| existing_code | No | Code snippet the comment references |