tree
Display a directory tree view up to a specified depth, with options to include hidden files and adjust recursion depth (1–10).
Instructions
Return a directory tree view up to a specified depth.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Root directory for the tree. Defaults to cwd. | . |
| max_depth | No | Maximum depth to recurse (1–10). Default: 3. | |
| show_hidden | No | Include hidden files and directories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||