get_repository_tree
Retrieve the file tree of a GitLab repository, optionally filtering by branch, path, or recursion. Supports pagination for large projects.
Instructions
Get the repository file tree
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_repository_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch/tag/commit to get tree from | |
| page | No | Page number (1-indexed) | |
| path | No | Path inside repository | |
| per_page | No | Results per page (1-100) | |
| recursive | No | Get tree recursively | |
| project_id | No | Project ID or URL-encoded path |