redact
Detect and anonymize personally identifiable information (PII) in text. Choose an action: redact, mask, hash, or warn to handle matches.
Instructions
Detect PII in text and anonymize every match with action.
Unlike scan, you pick the action per call: redact drops the value
([EMAIL]), mask keeps a hint (b***@acme.com, last-4 of a card), hash
yields a stable salted pseudonym ([EMAIL:3245e00b…]), and warn leaves the
text untouched but still reports what was found. action defaults to the
server's WARDCAT_ACTION.
The violations summary never contains raw values; sanitized_text still
holds the original text under action="warn" (which reports only).
Pass entities to anonymize only a subset of the server's enabled types
(e.g. ["EMAIL", "IBAN"]), leaving other detected PII untouched; omit it to
anonymize everything. Requesting a type the server didn't enable is an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| action | No | ||
| entities | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| is_clean | Yes | ||
| warnings | Yes | ||
| violations | Yes | ||
| sanitized_text | Yes | ||
| violation_count | Yes |