redact_file
Redact a UTF-8 text file into a new copy without exposing contents, reporting only per-type counts so personal data stays out of the conversation.
Instructions
Redact a text file into a new file without showing its contents. Returns only counts per type, so the personal data never enters the conversation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "redact_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Only these types; default all. | |
| overwrite | No | ||
| input_path | Yes | UTF-8 text file to redact (.txt, .md, .csv, .json, .log, .eml...). | |
| output_path | Yes | Where to write the redacted copy. | |
| save_mapping | No | Also write <output_path>.map.json (owner-only permissions) so restore_file can put the original values back later. |