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.
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": {
"text": "<text>"
},
"name": "scrub_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 |