Redact secrets and PII before sending text on
redact_textStrip emails, phone numbers, ID numbers, API keys, private keys, JWTs, card numbers and IPs out of text, returning the redacted text plus a mapping table to restore them afterwards. Rule-based only — no model sees the input. The same value always maps to the same placeholder, so the answer can be restored.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Optional comma-separated subset, e.g. "EMAIL,API_KEY,PRIVATE_KEY". | |
| text | Yes | The text to redact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||