scan_history
Scan git history to find secrets that were committed and later deleted, reporting each one with the commit that added it and the commit that removed it so leaked credentials can be rotated.
Instructions
Scan git history for secrets, including ones already deleted from the current files.
Streams git log -p and looks at every added and removed line. Each distinct secret is reported once with
the commit that added it and, if it is gone from the newest commit, the commit that removed it. REMOVED means
'not in the current files', NOT 'safe': anyone who cloned in between still has it, so rotate it.
Args: path: a directory inside a git repository. max_commits: how many commits to walk back from HEAD (newest first). The report says if older ones were not scanned. all_branches: also walk every branch, tag and stash ref (git log --all) instead of only HEAD. max_findings: cap on findings listed.
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_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_commits | No | ||
| all_branches | No | ||
| max_findings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |