GitHub list repository files
github_list_repository_filesList files and directories in a GitHub repository. Prefer the exact owner from github_list_repositories; 'repo' also accepts the combined 'owner/name' form. Returns the file tree at a given path. Use this to understand a project's structure before reading specific files.
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_list_repository_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Subdirectory path to list. If not provided, lists the root of the repository. | |
| repo | Yes | Repository name. Also accepts the combined 'owner/name' form. | |
| owner | No | Repository owner (e.g. 'octocat'). Prefer the exact owner from a prior github_list_repositories call. May be omitted when the repository name is unambiguous in this organisation, or embedded in 'repo' as 'owner/name'. | |
| branch | No | Branch name. Defaults to the repository's default branch. |