List branches and tags
list_refsList branch and tag names in a GitLab repository without cloning it. Filter by substring and set a result limit using cached read-only data.
Instructions
List branch and/or tag names in a repository, without cloning it into a working tree. Each row is kind, short commit, name, and the tip commit's subject. The list reflects the local copy as of synced_at (by default at most 10 minutes old); a ref created since that moment may be missing, because a stale list cannot be detected. Use resolve_ref to check one specific ref, which does refresh on a miss. If the copy cannot be refreshed, the cached copy answers and the result says the refresh failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Which refs to list: 'branches' (default), 'tags', or 'all'. | |
| search | No | Case-insensitive substring filter on the ref name, e.g. 'PROJ' or 'fix/'. | |
| project | No | GitLab project path, e.g. 'group/subgroup/repo'. Defaults to GITLAB_DEFAULT_PROJECT. | |
| max_refs | No | Maximum refs to return (default 200). |