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.
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "get_repo_tree"
}
}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) |