detect_secrets
Read-onlyIdempotent
Scan code or config files for hardcoded secrets: AWS keys, GitHub tokens, OpenAI/Anthropic API keys, Stripe secrets, JWTs, Slack/Teams/Discord webhook URLs, session cookies, database connection strings, and generic passwords. Returns findings with severity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Code or config content to scan (max 500KB) | |
| filename | No | Optional filename for context (e.g. ".env", "config.js") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| findings | No | ||
| risk_level | No | ||
| recommendation | No | ||
| total_findings | No |