carrel_redact
Redact sensitive patterns from text file contents and return the redacted result without modifying the original file; PDF redaction requires the CLI.
Instructions
Redact patterns from a text file's contents and return the result. Never writes; PDFs must go through the CLI (carrel redact FILE.pdf -o OUT.pdf).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Text file (txt/md/html/json/csv/xml). | |
| root | No | Desk root (default: server --root / cwd). | |
| builtin | No | Builtin patterns: email, phone, ssn, ipv4, cc, invoice, po, order, check, account, tracking, ticket, iban, routing, ein, vat, isbn, gtin, doi, ups, usps. | |
| pattern | No | Custom regexes to redact. | |
| replacement | No | Replacement text for matches. | █ |