list_directory
List directory contents with file sizes and types, showing [DIR] and [FILE] entries within a sandbox.
Instructions
List the contents of a directory with file sizes and types.
Returns a formatted tree showing [DIR] and [FILE] entries with sizes. Respects the allowed_directories sandbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory to list. | |
| recursive | No | Set to true to list subdirectories recursively. Default false. | |
| max_depth | No | Maximum recursion depth when recursive=true. Default 3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |