briefcheck_annotate_diff
Annotates unified diffs from raw text, local git changes, or GitHub PRs with explicit base and new line numbers so citations stay accurate.
Instructions
Render a unified diff (or local git diff / staged changes / GitHub PR) with explicit base | new line numbers for every hunk line so citations never drift.
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_annotate_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | GitHub PR reference (`owner/repo#123` or full PR URL). | |
| diff | No | Raw unified diff text. | |
| 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`. |