List Repository Tree Tool
list_repository_tree_toolLists files and directories in a GitLab repository to help you navigate project structure, with options for recursive listing and pagination.
Instructions
List repository tree (files and directories).
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_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA (default: default branch) | |
| page | No | Page number (default: 1) | |
| path | No | Path inside the repository (default: root) | |
| per_page | No | Results per page, max 100 (default: 20) | |
| recursive | No | List files recursively | |
| project_id | Yes | Project ID or path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||