anonymize_document
Strip and replace PII/privileged entities per GDPR, EU AI Act, HIPAA, or a custom scheme. Requires tools.text (text) or tools.file (file). Returns anonymized document + entity map, or a generic permission denial.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Inline text when no file_path | |
| regime | Yes | ||
| file_path | No | Absolute path to pdf/docx/csv/xlsx | |
| custom_entities | No | Entity types when regime is CUSTOM |