scan
Detect PII in text, return sanitized text and a PII-free summary of violations. Supports custom entity types or all enabled filters for on-prem detection.
Instructions
Detect PII in text and return the sanitized text plus a PII-free summary.
The violations summary never contains raw sensitive values — only entity
types, the action applied, and confidence — so it is always safe to log.
sanitized_text echoes the original text only when the server's action is
warn (which reports without altering); for redact/mask/hash the
sensitive values are removed.
Pass entities to narrow this call to a subset of the server's enabled
types (e.g. ["EMAIL", "IBAN"]); omit it to apply every enabled filter.
Requesting a type the server didn't enable is an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| entities | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_clean | Yes | ||
| warnings | Yes | ||
| violations | Yes | ||
| sanitized_text | Yes | ||
| violation_count | Yes |