scan_staged
Scans git-staged files for security vulnerabilities before you commit, catching issues early. Diff-aware by default, it reports only findings on newly-staged lines while skipping unchanged code.
Instructions
Scan git-staged files for security vulnerabilities before committing. Run this before every commit to catch issues early. No input needed — automatically reads staged files. Diff-aware by default: reports only issues on newly-staged lines (set diff_aware:false for whole staged 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_staged"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: markdown (human) or json (machine-readable for agents) | markdown |
| diff_aware | No | Report only findings on newly-staged lines (true, default) vs. all lines in staged files (false) |