Sanitize PII & Secrets Locally (ZTDS RFC v1.0)
ztds_sanitizeRedacts PII, PHI, and credentials locally in RAM before sending text to an LLM, using reversible session-scoped surrogate tokens with zero network egress.
Instructions
Drop-in ZTDS RFC v1.0 sanitization tool. Redacts sensitive PII, PHI, and credentials locally in process RAM using deterministic reversible surrogate tokens, scoped to sessionId, with zero network egress.
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": {
"text": "<text>"
},
"name": "ztds_sanitize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Raw UTF-8 plain text, code, or log content to sanitize locally in RAM before sending to an LLM. | |
| sector | No | Optional alias for 'profile'. The industry sector or compliance vertical to apply (e.g. 'medical', 'finance', 'legal', 'dev', 'hr', 'accounting', 'security', 'compliance', 'underwriting', 'telecom'). | |
| profile | No | The detection profile to use. Available: 'General' (Free, 15,000 chars), or 30 specialized industry profiles (5,000 chars Free trial quota; unlimited on PRO/TEAMS/SDK): 'Dev' (Engineering/Code), 'Medical', 'Pharma', 'Biotech', 'Telecom', 'Legal', 'Compliance', 'CCPA', 'Finance', 'Bizops', 'Sales', 'WealthMgmt', 'Insurance', 'Accounting', 'Underwriting', 'Automotive', 'Energy', 'Hospitality', 'HR', 'Security', 'Marketing', 'Support', 'RealEstate', 'Agents', 'Academic', 'Creative', 'Tech', 'Personal', 'Engineering'. Defaults to 'General'. | |
| sessionId | No | Optional session identifier scoping the volatile RAM token map. Defaults to 'default'. | default |