Redact text
redactReplace PII, PHI, and secrets in text with tokens so sensitive values stay in a server-side vault while models work with safe placeholders.
Instructions
Replace PII/PHI/secrets in text with tokens. Returns redacted_text and a session_id; the original values stay in the server vault.
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 |
|---|---|---|---|
| mode | No | Replacement mode: one of placeholder, synthetic, hash, mask, label. Default: server setting. | |
| text | Yes | Text to scrub | |
| policy | No | Policy pack(s), e.g. 'hipaa', 'dpdp,secrets', 'all,-URL'. Default: server setting. | |
| session_id | No | Reuse an existing session for consistent tokens. Omit to start a new one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||