Redact a file
redact_fileRedacts PII, PHI, and secrets in local files before returning or writing a cleaned copy, preserving JSON/JSONL/CSV structure and keeping raw values out of the conversation.
Instructions
Read a local file inside the server and return/write only its redacted version, so raw contents never enter the conversation. JSON, JSONL and CSV keep their structure; everything else is treated as text.
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": {
"path": "<path>"
},
"name": "redact_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Replacement mode: one of placeholder, synthetic, hash, mask, label. Default: server setting. | |
| path | Yes | File to read (inside the allowed directories) | |
| policy | No | Policy pack(s), e.g. 'hipaa', 'dpdp,secrets', 'all,-URL'. Default: server setting. | |
| overwrite | No | Allow replacing an existing output file | |
| session_id | No | Reuse an existing session for consistent tokens. Omit to start a new one. | |
| output_path | No | Also write the redacted copy here | |
| return_content | No | Return the redacted content in the result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||