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 entitiesInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| language | No | en | |
| operator | No | replace | |
| entities | No | ||
| score_threshold | No | ||
| operator_params | No |