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