scrub_json
Recursively sanitize JSON objects and arrays by tokenizing, redacting, or masking PII and sensitive keys before sending data to LLMs while preserving schema types.
Instructions
Recursively scrub PII and sensitive keys (password, secret, api_key, ssn) in a JSON object or array while preserving schema types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | JSON object or array to sanitize | |
| mode | No | tokenize |