dir_list
List folder contents on a Windows PC with file/folder names, types, sizes, and modified dates. Supports recursive sub-folder exploration up to 3 levels.
Instructions
List the contents of a folder/directory on this Windows PC. Shows file/folder names, type (📁 folder or 📄 file), file size (in KB/MB/GB), and last modified date. Supports recursive mode to display contents of sub-folders up to 3 levels deep. Use this to explore folder structures, locate files, check file sizes, or inspect directory contents. If no path is provided, lists the user's home directory (C:\Users<username>).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dir_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to the folder to list. Default: user home directory. Example: C:\Users\rayss\Desktop | |
| recursive | No | If true, also list contents of sub-folders recursively (max 3 levels deep). Default: false (only the specified folder). |