pii_redact
Find and redact personal data and secrets in text before an agent stores, logs or forwards it: emails, phone numbers, US SSNs, payment cards (Luhn-checked), IBANs (checksum), IPs, crypto addresses, dates of birth, street addresses, API keys, tokens and private keys, plus person names and free-form addresses from an LLM pass. Returns the redacted text ([EMAIL] labels or masks), each entity with its position, and counts. Costs $0.005 USDC on Base via 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": "pii_redact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to scan, up to 50,000 characters | |
| model | No | Also find names and free-form addresses with the LLM (default true) | |
| style | No | label: [EMAIL] (default); mask: ****, keeping a card's last 4 | |
| types | No | Comma list to limit the search (email, phone, us_ssn, credit_card, iban, ip_address, crypto_address, date_of_birth, street_address, secret, person_name, postal_address) |