Zero-PII & Secret Credential Redaction Engine
redact_sensitive_piiRedacts emails, phone numbers, SSNs, credit cards, API keys, and crypto private keys from text before logging or external transmission to prevent personal data and credential leaks.
Instructions
Redacts emails, phone numbers, SSNs, credit cards, API keys, and crypto private keys from text before logging or external transmission. Use when stripping personal data or secret credentials from prompts, logs, or outbound messages; for neutralizing indirect prompt injections and invisible Unicode in inbound tool responses, use sanitize_tool_output_stream instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('redaction_style' defaults to 'typed_token'), supports '?demo=true' or L402 (25 sats), and returns HTTP 400 if invalid.
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": "redact_sensitive_pii"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text containing potential PII or secret keys to redact. | |
| redaction_style | No | Placeholder format used for redacted spans; defaults to 'typed_token' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scrubbed_text | Yes | Sanitized text with all sensitive entities replaced by redaction tokens. | |
| redactions_count | Yes | Total number of sensitive entities redacted. | |
| zero_pii_certified | Yes | True when post-scan verification confirms zero residual PII patterns. | |
| categories_redacted | Yes | Types of sensitive data detected (e.g. 'EMAIL', 'SSN', 'PRIVATE_KEY'). |