model_scanner__scan_directory
Recursively scan a directory for machine learning model files and report supply-chain risks in each, skipping common non-model folders like node_modules and .git.
Instructions
Recursively scan a directory for ML model files (.pt, .pth, .ckpt, .pkl, .pickle, .bin, .dill, .joblib, .jbl, .npy, .npz, .safetensors, .h5, .hdf5, .keras, .onnx, .gguf, .pb, .pbtxt, .tflite; a TensorFlow SavedModel directory through its saved_model.pb) 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) |