安全审计扫描
run_security_scanRun a combined SAST and secret detection scan on any directory using semgrep and gitleaks, returning a structured JSON audit report with installation guides for missing tools.
Instructions
对目标目录执行安全扫描,内部自动并行调用 semgrep(SAST 静态分析)和 gitleaks(硬编码密钥检测),返回合并的结构化 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": {
"target_path": "<target_path>"
},
"name": "run_security_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_path | Yes | 要扫描的目标目录的绝对路径,如 /home/user/project |