review_pr
Scan pull requests for security issues in changed lines and generate GitHub Check Run output, PR comments, or inline annotations; optionally block merges based on severity thresholds.
Instructions
Review a pull request for security issues. Scans only changed lines (diff-only mode) and produces output for GitHub Check Runs, PR comments, or inline annotations. Supports severity gating to block PRs.
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": "review_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch to diff against | main |
| path | No | Repository root path | . |
| format | No | Output: markdown (PR comment), json (structured), annotations (GitHub Check Runs) | markdown |
| fail_on | No | Block PR if findings at this severity or above exist | high |
| diff_only | No | Only report findings in changed lines (true) or all findings in changed files (false) |