List repository tree
list_repository_treeList a GitLab repository's files and directories at a specific branch, tag, or commit. Provide project ID or path, and optionally set path, recursion, and pagination.
Instructions
List files and directories in a GitLab repository at a branch, tag, or commit.
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": "<project>"
},
"name": "list_repository_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| page | No | ||
| path | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| per_page | No | ||
| recursive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |