pii_redactor_audit
Deterministically detect and redact PII/sensitive tokens (emails, US phone numbers, SSNs, Luhn-valid payment cards, IPv4 addresses) prior to LLM/RAG ingestion. Returns redacted text and aggregate counts only (never echoes raw PII).
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": "pii_redactor_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text to sanitize before LLM/RAG processing. | |
| categories | No | Subset of PII categories to redact (defaults to all categories). | |
| placeholder_style | No | Replacement style: [REDACTED_EMAIL] (bracket) or *** (mask). | bracket |