list_tree
Lists repository files with their sizes so you can browse a project's file tree. Filter by directory prefix or extension to find the codebase parts worth reading.
Instructions
List files in a repository with their sizes. Filter by directory prefix or extension to find the parts of a codebase worth reading.
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_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | branch, tag or commit SHA | HEAD |
| repo | Yes | owner/name or a github.com URL | |
| limit | No | ||
| extension | No | only return files with this extension, e.g. 'py' | |
| path_prefix | No | only return paths starting with this prefix |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||