get_repository_tree
Retrieve the file and directory structure of a GitLab project to explore repository contents, navigate codebases, and understand project organization.
Instructions
Get the repository tree for a GitLab project (list files and directories)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID or URL-encoded path of the project | |
| path | No | The path inside the repository | |
| ref | No | The name of a repository branch or tag. Defaults to the default branch. | |
| recursive | No | Boolean value to get a recursive tree | |
| per_page | No | Number of results to show per page | |
| page_token | No | The tree record ID for pagination | |
| pagination | No | Pagination method (keyset) |
Input Schema (JSON Schema)
{
"properties": {
"page_token": {
"description": "The tree record ID for pagination",
"type": "string"
},
"pagination": {
"description": "Pagination method (keyset)",
"type": "string"
},
"path": {
"description": "The path inside the repository",
"type": "string"
},
"per_page": {
"description": "Number of results to show per page",
"type": "number"
},
"project_id": {
"description": "The ID or URL-encoded path of the project",
"type": "string"
},
"recursive": {
"description": "Boolean value to get a recursive tree",
"type": "boolean"
},
"ref": {
"description": "The name of a repository branch or tag. Defaults to the default branch.",
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}