Redact PHI/PII
redactReplace protected health information and personally identifiable information in text with reversible typed placeholders, keeping data private before LLM processing.
Instructions
Replace PHI/PII in text with reversible typed placeholders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to scrub |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes | What was redacted, for auditing | |
| token_map | Yes | placeholder -> original value; keep local, do NOT send to the model | |
| redacted_text | Yes | Text with PHI/PII replaced by typed placeholders |