Mask personal data in a text
mask_textMasks supplied plain text using optional detection settings, names, and values to keep. Detected data such as names and contact details is replaced with labels such as ⟦PERSON_1⟧. Returns masked_text, counts by type, detection mode, and the number of input characters. Masking is one way. The limit is 100,000 characters per call or the workspace limit if lower. Successful calls consume workspace quota or credits. Per-minute request limits depend on the workspace and apply per connection.
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": "mask_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | Up to 500 values to leave unchanged. | |
| text | Yes | Nonblank plain text to mask. | |
| names | No | Up to 500 names to mask. | |
| regions | No | Country codes for detection, such as IT or DE. The default is automatic country detection. | |
| language | No | Language code hint such as it or en. | |
| detection_mode | No | Detection mode, either accurate (the default) or fast. |