position_comment
Maps review comments to exact line numbers using text matching against diff hunks and fallback alignment. Requires path and comment text; supports optional code context and diff reference.
Instructions
Locate a comment to precise line numbers. Text matching primary (hunk new-side → old-side → full file), hunk alignment fallback. Pass diff_ref from get_review_targets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| repo | No | Repo path, default: cwd | |
| content | Yes | Comment text | |
| diff_ref | No | Default HEAD; pass from get_review_targets | |
| hint_line | No | Rough line number from host LLM | |
| existing_code | No | Code snippet the comment references | |
| suggestion_code | No | Suggested fix code |