scan_changed_files
Scans only files changed since a Git ref and reports diff-aware security findings for PR checks, pre-push hooks, and incremental CI.
Instructions
Scan only files that have changed since a given git ref (branch, commit, or HEAD~N). Ideal for PR checks, pre-push hooks, and incremental CI. Diff-aware by default: returns only findings on newly-added lines (set diff_aware:false for whole changed files).
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": "scan_changed_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Git ref to diff against (e.g. 'main', 'HEAD~3', commit SHA) | HEAD~1 |
| path | No | Repository root path | . |
| format | No | Output format | markdown |
| diff_aware | No | Report only newly-introduced findings on added lines (true, default) vs. all findings in changed files (false) |