List a project's file tree
One step with GitLab. We can help you get access.
Look something up
List a project's file tree
with GitLab
Works with AI assistants
Use GitLab: its GitLab REST Repositories API lets you list a project's file tree in a single step (GET /api/v4/projects/{id}/repository/tree). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I see every file and folder in a GitLab project?
- Can I get the file tree for a specific branch or tag?
Say it to your AI assistant
- List the file tree of project {id}.
- Show the file tree of {id} at branch {ref}.
For your developer
GET /api/v4/projects/{id}/repository/tree in GitLab REST Repositories API. Full spec on APIs.io.