scrub_text
Sanitize text by scrubbing or reversibly tokenizing PII and secrets like emails, SSNs, credit cards, and API keys before sending prompts to LLMs.
Instructions
Scrub or reversibly tokenize PII (emails, SSNs, Luhn-verified credit cards, IBANs, phones, IPv4) and leaked API keys/secrets from text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | tokenize ([EMAIL_1] + reversible vault), redact, or mask | tokenize |
| text | Yes | Raw text or prompt to sanitize | |
| types | No | Optional whitelist of detector types |