scan_file
Scan files for sensitive information with regex, checksum, and optional AI detection, then apply masking strategies like mask, replace, hash, or redact.
Instructions
扫描文件中的敏感信息
Args: file_path: 文件路径 enable_ai: 是否启用 AI 检测 mask_strategy: 脱敏策略
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": {
"file_path": "<file_path>"
},
"name": "scan_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| enable_ai | No | ||
| mask_strategy | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |