Redact JSON
redact_jsonRedact sensitive values in JSON documents while preserving their structure, using field-name hints and configurable policies to protect PII, PHI, and secrets.
Instructions
Redact a JSON document while keeping its structure. Field names count as evidence: values under keys like 'name' or 'address' are redacted whole.
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": {
"data": "<data>"
},
"name": "redact_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | A JSON object/array, or a JSON string | |
| mode | No | Replacement mode: one of placeholder, synthetic, hash, mask, label. Default: server setting. | |
| policy | No | Policy pack(s), e.g. 'hipaa', 'dpdp,secrets', 'all,-URL'. Default: server setting. | |
| session_id | No | Reuse an existing session for consistent tokens. Omit to start a new one. | |
| use_field_hints | No | Also redact whole values under telling keys (name, aadhaar, password…) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||