Get repository file tree
get_repo_treeRetrieve a repository's folder and file structure as an indented tree; use path and depth options to inspect a specific subfolder without listing the entire repository.
Instructions
The folder and file structure of a repository, as an indented tree. Use path to focus on a subfolder and max_depth to control detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit SHA (default: the default branch) | |
| path | No | Only show this subfolder, e.g. 'src/main/java' | |
| repo | Yes | Repository name, e.g. 'spring-boot' | |
| owner | Yes | Repository owner (user or organization), e.g. 'spring-projects' | |
| max_depth | No | How many folder levels to show below path (default 3) | |
| max_entries | No | Maximum lines to return (default 300) |