{ "manifestVersion": 1, "name": "@toolpal/pii-redact", "version": "1.0", "description": "Scans and redacts personal information (emails, phone numbers, SSNs, Luhn-verified credit cards, IBANs, IP addresses) and credentials/secrets (API keys, JWTs, private keys, database URLs, Bearer tokens) locally from text or files (TXT, MD, CSV, JSON, LOG, ENV, DOCX). Runs 100% offline with zero network access and no API keys.", "license": "MIT", "keywords": [ "pii", "redact", "privacy", "security", "secrets", "anonymize", "gdpr" ], "entry": "dist/tool.mjs", "sdk": "0.1.0", "engines": { "node": ">=22.15.0" }, "inputSchema": { "type": "object", "properties": { "text": { "type": "string", "maxLength": 500000, "description": "Text to scan or redact inline" }, "file": { "type": "string", "description": "File to scan or redact (TXT, MD, CSV, JSON, LOG, ENV, YAML, DOCX)", "x-toolpal-file": true }, "mode": { "anyOf": [ { "type": "string", "const": "redact" }, { "type": "string", "const": "scan" } ], "description": "redact (default) outputs sanitized text/file; scan only audits findings" }, "style": { "anyOf": [ { "type": "string", "const": "placeholder" }, { "type": "string", "const": "mask" }, { "type": "string", "const": "hash" } ], "description": "How to replace matches: placeholder ([EMAIL_1], default), mask (j***@acme.com), or hash ([EMAIL:a1b2c3d4])" }, "categories": { "type": "array", "items": { "anyOf": [ { "type": "string", "const": "private_key" }, { "type": "string", "const": "connection_string" }, { "type": "string", "const": "jwt" }, { "type": "string", "const": "api_key" }, { "type": "string", "const": "secret_assignment" }, { "type": "string", "const": "email" }, { "type": "string", "const": "credit_card" }, { "type": "string", "const": "iban" }, { "type": "string", "const": "ssn" }, { "type": "string", "const": "phone" }, { "type": "string", "const": "ip" } ] }, "minItems": 1, "uniqueItems": true, "description": "Limit detection to specific categories; all categories enabled by default" }, "customTerms": { "type": "array", "items": { "type": "string", "minLength": 2, "maxLength": 120 }, "maxItems": 100, "description": "Extra names, companies or codenames to redact (case-insensitive)" }, "allowlist": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 }, "maxItems": 100, "description": "Exact values to leave untouched, e.g. support@company.com" } } }, "outputSchema": { "type": "object", "required": [ "mode", "findingsCount", "byType", "findings" ], "properties": { "mode": { "type": "string" }, "findingsCount": { "type": "integer" }, "byType": { "type": "object", "patternProperties": { "^.*$": { "type": "integer" } } }, "findings": { "type": "array", "items": { "type": "object", "required": [ "type", "line", "preview", "replacement" ], "properties": { "type": { "type": "string" }, "line": { "type": "integer" }, "preview": { "type": "string", "description": "Masked preview — raw secret is never returned" }, "replacement": { "type": "string" } } } }, "text": { "type": "string", "description": "Redacted text (for inline text input)" }, "file": { "type": "string", "description": "Redacted output file (for file input)", "x-toolpal-file": true } } }, "permissions": { "net": false, "env": [], "tmp": true }, "limits": { "timeoutMs": 30000, "memoryMb": 256 }, "build": { "toolpal": "0.1.0", "esbuild": "0.28.2", "options": "sha256-tMpkndD8HsDUvZadrPbEAMGGIGK7nvmTGxMMlUxy9Fo=" } }