mask_file
Mask sensitive information in files using regex, checksum, or AI-based detection. Save output to a new file or overwrite in place.
Instructions
脱敏文件内容并保存
Args: file_path: 输入文件路径 output_path: 输出文件路径(与 inplace 互斥) mask_strategy: 脱敏策略 enable_ai: 是否启用 AI 检测 inplace: 是否原地覆盖(慎用)
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": "mask_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No | ||
| mask_strategy | No | ||
| enable_ai | No | ||
| inplace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |