scan_secrets
Detect leaked API keys, database passwords, private keys, and token assignments in source files and Git history; report findings by file and line with secret values redacted.
Instructions
Preflight check #2: scan a project directory for secrets (service_role, Stripe/OpenAI/AWS keys, DB URLs with passwords, private keys, generic SECRET/TOKEN assignments) in source files and git history. Uses gitleaks when available, otherwise a built-in regex scan. Public-by-design keys (anon/publishable/pk_) are reported as Baixa. Secret VALUES are never returned — only variable/pattern name, file and line.
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": "scan_secrets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Absolute or relative path to the project directory |