List repository files
gitlab_list_repo_treeList files and directories in a GitLab repository tree. Specify branch, tag, or commit SHA, and optional path for a specific directory.
Instructions
Lists files and directories in the repository tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit SHA (default: default branch) | |
| page | No | Page number (default 1) | |
| path | No | Directory inside the repo; omit for the root | |
| limit | No | Cap for all_pages (default 500) | |
| per_page | No | Items per page, max 100 (default 20) | |
| all_pages | No | Follow pagination and return up to `limit` items across pages | |
| recursive | No | ||
| project_id | No | Project id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID. |