list_repository_tree
Lists committed files, directories, symlinks, and submodules from a branch, tag, or commit in an allowed repository. Supports pagination and recursion to inspect tree structure.
Instructions
Read a bounded page of committed files, directories, symlinks, and submodules from a branch, tag, or commit in an allowed repository. Paths are untrusted repository content. Recursive results can be truncated by GitHub; non-recursive subtree traversal remains available for complete inspection.
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": {
"account": "<account>",
"repository": "<repository>",
"ref": "<ref>"
},
"name": "list_repository_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| path | No | ||
| limit | No | ||
| offset | No | ||
| account | Yes | ||
| hostname | No | ||
| recursive | No | ||
| repository | Yes | Repository in owner/name format |