scan_secrets
Detect leaked credentials, API keys, and tokens in text. Returns detailed scan results with pattern IDs and positions to block or flag exposed secrets.
Instructions
Scan text for leaked credentials, API keys, tokens, and other secrets. Returns a full ScanResult with per-match details including pattern id, family, and character positions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to scan for secrets | |
| blockOnAny | No | When true (default), any detected secret causes a BLOCK decision | |
| minEntropy | No | Minimum Shannon entropy required for high-entropy pattern matches (default: 4.0) |