list_repository_tree
List files and directories in a GitLab project repository to navigate its structure by specifying a path or branch.
Instructions
List files and directories in a project 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": {
"project_id": "<project_id>"
},
"name": "list_repository_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| path | No | Directory path (default: root) | |
| ref | No | Branch or tag (default: default branch) |