redact_pii
Automatically detect and redact Personally Identifiable Information (PII) from text. Replaces emails, phone numbers, SSNs, credit cards, IP addresses, and JWT tokens with [REDACTED_TYPE] placeholders. Safe to use before logging or sending to an LLM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text to redact PII from | |
| types | No | Comma-separated types to redact (default: all). Options: email, phone, ssn, credit_card, ip_address, jwt | |
| marker | No | Custom replacement marker (default: "REDACTED"). Result: [REDACTED_EMAIL] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | ||
| pii_found | No | ||
| replacements | No | ||
| redacted_text | No | ||
| total_redactions | No |