Secrets scanner
secrets_detectionScan code for leaked secrets, API keys, tokens, and credentials. Detects 16+ secret types including AWS keys, GitHub tokens, Stripe keys, private keys, JWTs, database URLs, and high-entropy strings. Returns redacted previews with severity levels and rotation recommendations. No external API — pure regex pattern matching. Costs $0.005 USDC per call.
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": {
"code": "<code>"
},
"name": "secrets_detection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code string to scan for secrets | |
| filename | No | Optional filename for context (e.g. 'config.ts', '.env.example') |