mask_text
Detect and mask sensitive information in text using strategies like mask, replace, hash, or redact, with optional AI semantic detection.
Instructions
检测并脱敏文本,返回脱敏后的文本
Args: text: 待脱敏文本 mask_strategy: 脱敏策略 mask|replace|hash|keep_format|redact enable_ai: 是否启用 AI 语义检测
Returns: 脱敏后的文本
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 |
|---|---|---|---|
| text | Yes | ||
| mask_strategy | No | ||
| enable_ai | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |