GitHub tree
github_treeList files and directories in a GitHub repository at a branch, tag, or commit, with optional recursive full-tree retrieval.
Instructions
List files and directories in a repository at a ref, using the git trees API. Use recursive=true only when the full tree is needed.
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": "github_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit; defaults to the repository default branch | |
| path | No | Subdirectory path inside the ref | |
| repo | Yes | Repository in owner/name form | |
| fresh | No | Bypass the local cache | |
| recursive | No | Return the complete tree recursively | |
| max_entries | No | Maximum entries returned, default 1000 |