scan_text
Scans text to detect and mask sensitive information using regex, checksum, and optional AI semantic analysis. Supports multiple masking strategies like mask, replace, hash, and redact.
Instructions
检测文本中的敏感信息
Args: text: 待检测文本 enable_ai: 是否启用 AI 语义检测(需配置 OPENAI_API_KEY 环境变量) mask_strategy: 脱敏策略,可选 mask|replace|hash|keep_format|redact
Returns: JSON 格式的检测结果列表
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": "scan_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| enable_ai | No | ||
| mask_strategy | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |