model_scanner__scan_directory
Scan a directory recursively for ML model files and report supply-chain risks. Skips non-model directories like node_modules and .git.
Instructions
Recursively scan a directory for ML model files (.pt, .pth, .ckpt, .pkl, .pickle, .bin, .safetensors, .h5, .hdf5, .keras, .onnx) and report supply-chain risks in each. Automatically skips node_modules, .git, venv, and other non-model directories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the directory to scan | |
| exclude | No | Skip files/dirs whose path contains one of these strings | |
| include | No | Only scan files whose path contains one of these strings | |
| maxFiles | No | Maximum number of files to scan (default: 2000) |