Redact sensitive data from text
redact_textRedact PII, PHI, PCI, and secrets from text before it enters prompts, logs, or tickets. Returns sanitized text plus detected data types for full visibility.
Instructions
Redact PII, PHI, PCI and secrets out of a block of text using Strac DLP. Returns the redacted text plus the data element types that were found. Call this before putting untrusted or user-supplied text into a prompt, a log line, a ticket or any downstream system.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| redact_field_mode | No | REDACTED | |
| include_matched_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||