gitlab_list_repository_tree
Browse repository files and directories to view project structure, filter by file type, or navigate specific branches and paths.
Instructions
List files and directories at a given path in the repository.
Examples:
- "Show top-level files" → default call
- "All .py files recursively" → recursive=True then filter on .py in path
- Don't use for full-text content — use gitlab_get_file for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path (empty for root). | |
| ref | No | Branch, tag or SHA. | master |
| recursive | No | Recurse into subdirectories. | |
| per_page | No | Items per page (1–100). | |
| page | No | 1-based page number. | |
| project_path | No | GitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| path | Yes | ||
| ref | Yes | ||
| count | Yes | ||
| pagination | Yes | ||
| items | Yes |