scrub_secrets
Detects and masks secrets like API keys, tokens, and passwords in content before sending to LLMs, preventing sensitive data exposure.
Instructions
Scrub secrets from content before sending to LLM.
Detects and masks 15+ types of secrets:
AWS keys, OpenAI/Anthropic API keys
GitHub tokens, Stripe keys, Firebase/Supabase keys
Private keys (PEM), JWTs, connection strings
Generic API keys and passwords
Use this before including user content in prompts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Content to scrub secrets from | |
| show_start | No | Characters to show at start of masked secret (default: 4) | |
| show_end | No | Characters to show at end of masked secret (default: 0) |