FruxonDocs

GitLab

Access GitLab projects, merge requests, issues, commits, pipelines, and repositories

The GitLab integration lets your agents read project metadata, browse merge requests and issues, inspect commits and repository contents, watch pipelines, and post comments — against GitLab.com or any self-hosted GitLab instance.

Prerequisites

  • A Personal Access Token with read_api scope (or api if your agent will post comments). Create one under GitLab → User Settings → Access Tokens.
  • The project path in namespace/project format (e.g., acme/my-repo).
  • Base URL if you're on self-hosted GitLab. Leave blank for gitlab.com.

Setup

  1. Open your agent in Agent Studio.
  2. In the Integrations panel, click Add Integration Config.
  3. Select GitLab from the integration list.
  4. Give the config a display name (e.g., "GitLab — Platform team").
  5. Enter your Personal Access Token, Project path, and (if self-hosted) Base URL.
  6. Save the agent revision.

Using in Your Agent

  1. In an Agent Step, attach GitLab tools from the tools panel.
  2. Tools are referenced as gitlab.list_issues, gitlab.create_merge_request_note, etc.

Write tools (create_issue, create_issue_note, create_merge_request_note) require a token with the api scope. Read-only flows are fine with read_api.

Available Tools

Projects

ToolDescriptionAction Type
list_projectsList projects accessible by the authenticated userReadOnly
get_projectGet details of a specific project by URL-encoded pathReadOnly

Issues

ToolDescriptionAction Type
list_issuesList issues for a projectReadOnly
get_issueGet a single issue from a projectReadOnly
create_issueCreate a new issue in a projectIrreversible
list_issue_notesList comments (notes) on an issueReadOnly
create_issue_noteAdd a comment to an issueIrreversible

Merge requests

ToolDescriptionAction Type
list_merge_requestsList merge requests for a projectReadOnly
get_merge_requestGet a single merge requestReadOnly
get_merge_request_changesGet the diff/changes of a merge requestReadOnly
list_merge_request_notesList comments on a merge requestReadOnly
create_merge_request_noteAdd a comment to a merge requestIrreversible

Repository

ToolDescriptionAction Type
list_commitsList commits in a project repositoryReadOnly
get_commitGet a specific commit by SHAReadOnly
list_branchesList branches in a project repositoryReadOnly
list_tagsList tags in a project repositoryReadOnly
get_file_contentGet the content of a file from a repositoryReadOnly

Pipelines

ToolDescriptionAction Type
list_pipelinesList pipelines for a projectReadOnly
get_pipelineGet a single pipelineReadOnly
list_pipeline_jobsList jobs for a specific pipelineReadOnly

On this page