list_files
Retrieve the list of files and folders at any directory in a GitHub repo. Specify owner/repo, a path, and optionally a branch or commit to explore the codebase.
Instructions
List files and directories at a given path inside a repository.
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": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path inside the repo (default: root ""). | |
| repo | Yes | Repository in "owner/repo" format. | |
| branch | No | Branch, tag, or commit SHA (default: repo default branch). |