trufflehog_scan
Scan Git repos, local paths, or GitHub for leaked secrets and credentials, returning findings with detector type, verification status, and source location to fix exposures.
Instructions
Scan for leaked secrets and credentials using TruffleHog.
Args: target: Git repository URL (for git/github mode) or local directory path (for filesystem mode). scan_type: Scan type — git (repo URL), filesystem (local path), github (GitHub org/user). branch: Branch to scan (optional, defaults to all branches). timeout: Override default timeout.
Returns: List of secret findings with detector type, verification status, and source location.
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": {
"target": "<target>"
},
"name": "trufflehog_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| target | Yes | ||
| timeout | No | ||
| scan_type | No | git |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||