Scan git history
scan_repoScan a Git repository and its commit history for hardcoded secrets; findings are returned with secret values redacted.
Instructions
Scan a git repository, including its commit history, for hardcoded secrets. Secret values are always redacted.
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_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the git repository. | |
| log_opts | No | Optional `git log` options to limit the scan, e.g. "main..HEAD" or "--since=2024-01-01". | |
| max_findings | No | Maximum findings to return (the total count is always reported). |