tinplate_pii_redactor
Detect and redact emails, phones, IBANs, payment cards, IPs, SSNs, EU VATs, and national IDs with deterministic reversible tokens before LLM calls. Operates offline in volatile RAM. (Endpoint: POST /v1/pii-redactor)
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": "tinplate_pii_redactor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'token' returns reversible [PII_<TYPE>_N] tokens + caller-only tokens map; 'mask' returns [REDACTED:<TYPE>] with an empty tokens map. | |
| text | Yes | Input text to scan and redact (max 256 KB). | |
| types | No | Optional whitelist of PII entity types to redact. | |
| locales | No | Locale packs to enable (defaults to ['GLOBAL', 'EU']). |