Scan staged changes
scan_stagedScans only staged Git changes for hardcoded secrets before commit and returns redacted findings without exposing matched secret values.
Instructions
Scan only the changes currently staged in a git repository (what git commit would record). Use before committing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "scan_staged"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the git repository. | |
| max_findings | No | Maximum findings to return (the total count is always reported). |