redact_document
Redact PII from an uploaded file or document before sharing it with an AI. Works on PDFs, Word (.docx), Excel (.xlsx), and text-based files (txt, csv, json, code, transcripts, logs). Pass base64 file data with media_type/filename, OR raw text. Returns the redacted text and counts. Requires your workspace key (via the MCP server URL). NOTE: detection is automated and is not a guarantee; it can miss personal data. Review the file yourself before sharing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | or raw text instead of a file | |
| base64 | No | base64-encoded file bytes | |
| filename | No | ||
| detectors | No | ||
| media_type | No | e.g. application/pdf, text/csv | |
| customTerms | No | ||
| customPatterns | No |