get_file_tree
Retrieve a hierarchical directory tree of your repository, honoring .gitignore and optionally including hidden files. Use to understand project structure without shell commands.
Instructions
Repo-relative directory tree, gitignore-aware. Use INSTEAD of shelling out to Bash: ls -R or Bash: tree when the user asks for the project structure or for orientation in an unfamiliar module. Returns a hierarchical FileTreeNode with files (with byte sizes) and directories (with recursive children, capped at max_depth). Honors .gitignore; skips hidden files unless include_hidden=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional repo-relative subdirectory; defaults to root. | |
| max_depth | No | Cap on tree depth. | |
| include_hidden | No | Include dot-files / dot-directories. |