scan_directory
Recursively scan directories to detect hidden malicious code patterns, including invisible Unicode, homoglyphs, and Trojan Source threats across source files.
Instructions
Recursively scan a directory for hidden malicious code patterns across all source files
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": {
"dir_path": "<dir_path>"
},
"name": "scan_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir_path | Yes | Absolute path to the directory to scan | |
| extensions | No | File extensions to scan (e.g., [".js", ".ts"]). Defaults to common source file extensions. |