Anonymize a document with Stript
stript_anonymize_fileAnonymize a local document to remove personal data before processing. Placeholders are inserted so original values can be restored later.
Instructions
Use this when the user wants to work with a document that may contain personal data, for example summarize it, translate it, or draft a reply. Ask the user for the file path. Never ask the user to paste document content into the chat. Stript detects and replaces personal data locally and only the anonymized text enters the conversation. Placeholders like [PERSON_1] can be restored later with stript_restore. Set mode to review when the user wants to check the detections in the Stript app first, Stript then opens the document and you wait for the user. Processing a new document uses one of the 5 Free Evaluation documents, already processed documents are free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto anonymizes headlessly, review opens the Stript app for the user first | auto |
| path | Yes | Absolute or ~ path of the document to anonymize | |
| project | No | Stript project id, defaults to the configured project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| types | No | ||
| status | Yes | ||
| warnings | No | ||
| evaluation | No | ||
| project_id | No | ||
| document_id | No | ||
| output_file | No | ||
| replacements | No | ||
| residual_risk | No | ||
| anonymized_text | No | ||
| degraded_reasons | No | ||
| detections_total | No | ||
| reduced_accuracy | No |