redact-text
Selective PII redaction with a self-check — Redacts detected personal data at the level you choose and rescans the output with the same rules. This self-check does not prove that all personal data is gone. Pick a level: 1 government identifiers (SSN, ITIN, EIN, UK NINO, Canadian SIN, driver's license, passport), 2 adds dates of birth, 3 adds street addresses and phone numbers, 4 adds person names and email addresses. Then switch single cate
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 |
|---|---|---|---|
| keep | No | Strings that must never be redacted, such as your own email address or company name. Case-insensitive, whole match. | |
| text | Yes | The document text to redact (plain text, Markdown, CSV, JSON or HTML source). | |
| level | No | Cumulative preset, default 1. 1: government identifiers (SSN, ITIN, EIN, UK NINO, Canadian SIN, driver's license, passport); 2: level 1 plus dates of birth; 3: level 2 plus street addresses and phone numbers; 4: level 3 plus person names and email addresses. | |
| style | No | label (default): [REDACTED:SSN]. generic: [REDACTED]. numbered: [PERSON_1], same value same number. last4: [REDACTED:SSN:*6789] for numeric identifiers; this discloses the last four characters. | |
| terms | No | Words or phrases to redact wherever they appear (business names, project names, people you already know). Case-insensitive. | |
| exclude | No | Categories to remove from the level preset. | |
| include | No | Categories to add to the level preset. | |
| useModel | No | Add a language-model pass for names, organizations and addresses (when those categories are on). Sends the text, up to 60000 characters, to the configured model provider. Default false. | |
| categories | No | Exact set of categories to redact; replaces the level preset when given. | |
| minDigitRun | No | Also redact every run of at least this many digits (spaces, dots and hyphens between digits count as part of the run). This is the number of digits, not the numeric value. |