get_repository_tree
Retrieve a repository's file tree, full or partial, with optional recursion to inspect project structure.
Instructions
Get full or partial file structure tree for a repository, optionally recursive.
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": {
"repo": "<repo>"
},
"name": "get_repository_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | No | GitHub user or organization name (optional if GITHUB_OWNER is set) | |
| tree_sha | No | Branch name, commit SHA, or tree SHA (defaults to HEAD) | HEAD |
| recursive | No | Whether to fetch subtrees recursively |