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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "redact_document"
}
}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 |