anonymize_text
Remove personally identifiable information from text to protect privacy. This tool detects and anonymizes over 25 PII types using configurable methods like replacement, redaction, or encryption.
Instructions
Anonymize PII in text using various operators.
Args:
text: The text to anonymize
language: Language code (default: "en")
operator: Anonymization operator - "replace", "redact", "hash", "mask", "encrypt" (default: "replace")
entities: List of entity types to anonymize (default: all)
score_threshold: Minimum confidence score for detection (default: 0.0)
operator_params: Additional parameters for the operator (e.g., {"new_value": "ANONYMIZED"})
Returns:
JSON string with anonymized text and list of anonymized entities
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": "anonymize_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| language | No | en | |
| operator | No | replace | |
| entities | No | ||
| score_threshold | No | ||
| operator_params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |