text_redact
text_redactDetects and redacts personal data in text before it is logged, stored or sent to a model: emails, phones, US SSNs, payment cards (Luhn-checked), IBANs (checksum-checked), IPv4/IPv6, URLs, dates of birth, street addresses, passport or ID numbers in context, and crypto wallet addresses. Returns the redacted text plus each finding with type, value and offsets. Modes: label ([EMAIL]), mask (****1234) or remove. Up to 200,000 characters per call; nothing leaves the server. Price: $0.003 USDC per call (x402).
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": "text_redact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | label (default), mask or remove | |
| text | Yes | Text to redact, up to 200000 characters | |
| types | No | Comma-separated subset of email,phone,ssn,credit_card,iban,ip,url,date_of_birth,address,passport,crypto_address (default all) | |
| include_findings | No | false to omit the findings array (default true) |