Github List Repository Tree
github_list_repository_treeList a GitHub repository's file tree at a branch, tag, or SHA, optionally scoped to a subdirectory or recursive. Use it to inspect file structure and entry metadata before analyzing PRs or issues.
Instructions
Lists a repository's tree at ref, one level deep unless recursive. Each entry carries path, mode, type, size and sha. truncated is True where the tree exceeded GitHub's cap, which no amount of paging widens. See #409.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or SHA to list at. Omit for the default branch | |
| path | No | Subdirectory to list. Omit for the repository root | |
| recursive | No | Descend into every subdirectory rather than one level | |
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| path | Yes | ||
| total | Yes | ||
| entries | Yes | ||
| truncated | Yes |