Scan Path
scan_pathScans a drive or folder to collect disk usage metadata and returns a scan handle for analysis tools, with optional filters, file/folder inclusion, and CSV snapshots.
Instructions
Read-only directory scan: WizTree on Windows, metadata traversal on macOS. Both platforms return a scan handle by default; pass it as csvPath to analysis tools.
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": {
"targetPath": "<targetPath>"
},
"name": "scan_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| admin | No | Pass /admin=1 to WizTree for a faster low-level MFT scan. This triggers a Windows UAC elevation dialog; in an unattended environment the process will hang until the configured timeout. | |
| filter | No | Optional WizTree include filter, such as "*.mp4". | |
| sortBy | No | Optional WizTree sort option, such as "size". | |
| treemap | No | Windows: return a 1024x768 treemap inline; its temporary PNG is removed after reading. | |
| maxEntries | No | Native traversal / Windows CSV entry limit. | |
| targetPath | Yes | Drive or folder to scan, such as "C:" or "D:\Data". | |
| wiztreePath | No | Optional explicit path to WizTree64.exe or WizTree.exe. | |
| includeFiles | No | Include file rows in the export. | |
| saveSnapshot | No | Explicitly save CSV; requires snapshotDirectory and snapshotName. Default keeps only the latest scan in memory, without persistent exports. | |
| snapshotName | No | Explicit simple filename ending in .csv. Existing files are never overwritten. | |
| filterExclude | No | Optional WizTree exclude filter, such as "node_modules". | |
| includeFolders | No | Include folder rows in the export. | |
| timeoutSeconds | No | ||
| snapshotDirectory | No | Explicit absolute directory for an intentionally saved CSV. |