read_repository_code
Read a GitLab repository's code structure and file contents with filters for path, file types, size, and number of files.
Instructions
Read the complete code structure and content of a repository with filtering options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID or path (e.g., 'username/repo-name') | |
| ref | No | Branch, tag, or commit SHA | main |
| path | No | Specific directory path to read (leave empty for root) | |
| max_files | No | Maximum number of files to read (default: 50) | |
| max_file_size | No | Maximum file size in bytes to read (default: 100KB) | |
| include_patterns | No | Comma-separated file patterns to include (e.g., '*.py,*.js') | |
| exclude_patterns | No | Comma-separated file patterns to exclude (e.g., '*.log,*.tmp') | *.log,*.tmp,*.lock,node_modules/*,__pycache__/*,*.pyc,*.pyo,*.pyd,.git/* |