briefcheck_check_citations
Verify path:line and path:start-end citations in Markdown PR reviews or GitHub PR comments to catch hallucinated line numbers before review output is trusted.
Instructions
Deterministically verify every path:line, path:start-end, path:line:col, and path#Lline diff citation in any free-form Markdown PR review (or existing GitHub PR comments when pr_comments is true).
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": "briefcheck_check_citations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | GitHub PR reference (`owner/repo#123` or full PR URL). | |
| diff | No | Raw unified diff text. | |
| author | No | Optional GitHub login filter when `pr_comments` is true (e.g. `coderabbitai[bot]`). | |
| staged | No | When true, read staged git changes (`git diff --cached`). | |
| git_base | No | Local git base ref (e.g. `origin/main`) to diff against `git_head`. | |
| git_head | No | Local git head ref when using `git_base` (defaults to `HEAD`). | |
| repo_dir | No | Optional local repository path for `git_base` or `staged`. | |
| revision | No | Optional reviewed commit SHA override. | |
| test_log | No | Optional test log text to verify commit revision alignment. | |
| pr_comments | No | When true with `pr`, fetch and audit existing comments/reviews on that PR. | |
| review_text | No | Markdown review text whose citations should be verified. | |
| strict_warnings | No | Fail when any warning is emitted. | |
| require_citations | No | Fail when zero diff citations are found in the review text. | |
| strict_log_revision | No | Treat mismatched test-log revisions as errors instead of warnings. | |
| allow_external_files | No | Downgrade citations to files absent from the diff from error to warning. |