List directory contents
repo_tree_listLists files and directories at a given repository path for a branch, tag, or commit SHA. Omit the path to browse the repository root.
Instructions
List files and directories at a path. Omit path to list the repository root.
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>",
"ref": "<ref>"
},
"name": "repo_tree_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Branch, tag or commit SHA | |
| path | No | Directory path (default: repository root) | |
| repo | Yes | Repository path, e.g. "owner/repo" or "group/subgroup/repo" |