Convert text by replacing personal data with placeholders
redactReplaces personal data in a text with placeholders: e-mail addresses, phone numbers, IBANs (mod 97 checked), payment card numbers (Luhn checked only), IPv4 addresses and, with names true, person names found by the chat model. Returns the redacted text and counts per type. Original values are never returned. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
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": "redact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text, up to 20,000 characters | |
| names | No | true to also replace person names (uses the chat model) | |
| types | No | Any of email, phone, iban, card, ip (default all) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| counts | No | ||
| source | No | ||
| checkedAt | No |