repo_tree
Lists a repository directory at a ref: up to 500 entries, 1-4 levels below path (truncated when cut off). The response includes the resolved sha.
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": {
"repositoryID": "<repositoryID>"
},
"name": "repo_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or sha; defaults to the default branch. | |
| path | No | Directory from the repository root, without a leading /; defaults to the root. | |
| depth | No | Nesting depth, 1-4; default 1. | |
| repositoryID | Yes | Repository ID. |