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.
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"
}
}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 |