secret_scanner__scan_git
Scan Git repositories for secrets in staged changes or commit history, including deleted lines still stored in commits. Detect leaked credentials before or after commits.
Instructions
Scan a git repository for secrets in what git says was added: the staged changes (before a commit) or every commit's added lines (history). History finds secrets that were deleted from the files but are still in the repository.
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>",
"mode": "<mode>"
},
"name": "secret_scanner__scan_git"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | staged: lines added in the index; history: lines added by each commit | |
| path | Yes | A directory inside the git repository | |
| range | No | History only: a revision range such as main..HEAD (default: all refs) | |
| entropy | No | Also flag random-looking values assigned to secret-like names (default true) | |
| baseline | No | Path to a baseline file: only findings not in it are reported | |
| maxCommits | No | History only: stop after this many commits |