List Directory
list_directoryList files and subdirectories for a given path with sizes and optional hidden/build folder inclusion, enabling clear inspection and filtering of project contents.
Instructions
List files and directories inside a given directory with size and clean filtering.
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": {
"path": "<path>"
},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative or absolute path to the directory. | |
| include_hidden | No | If True, includes hidden and build directories (.git, node_modules, etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |