Agent tools

The following tools are available to custom agents.

NameDescription
Gitlab Blob SearchSearch for the contents of files in a group or project.
Ci LinterValidate CI/CD YAML configurations against CI/CD syntax rules.
Run Git CommandRun Git commands in the current working directory.
Gitlab Commit SearchSearch for commits in a project or group.
Create EpicCreate epics in a group.
Create IssueCreate issues in a project.
Create Issue NoteAdd notes to an issue.
Create Merge RequestCreate merge requests in a project.
Create Merge Request NoteAdd notes to a merge request. Quick actions are not supported.
Edit FileEdit existing files.
Find FilesRecursively find files in a project.
Get CommitGet a commit from a project.
Get Commit CommentsGet the comments of a commit in a project.
Get Commit DiffGet the diff of a commit in a project.
Get EpicGet an epic in a group.
Get Epic NoteGet a note from an epic.
Get IssueGet an issue from a project.
Get Issue NoteGet a note from an issue.
Get Job LogsGet the trace for a job.
Get Merge RequestGet details about a merge request.
Get Pipeline ErrorsGet the logs for failed jobs from the latest pipeline of a merge request.
Get ProjectGet details about a project.
Get Repository FileGet the contents of a file from a remote repository.
GrepRecursively search for text patterns in files. This tool respects .gitignore file rules.
Gitlab Group Project SearchSearch for projects in a group.
Gitlab Issue SearchSearch for issues in a project or group.
List All Merge Request NotesList all notes on a merge request.
List CommitsList commits in a project.
List DirList files in a directory relative to the root of the project.
List Epic NotesList all notes for an epic.
List EpicsList all epics of a group and its subgroups.
List Issue NotesList all notes on an issue.
List IssuesList all issues in a project.
List Merge Request DiffsList the diffs of changed files in a merge request.
Gitlab Merge Request SearchSearch for merge requests in a project or group.
Gitlab Milestone SearchSearch for milestones in a project or group.
MkdirCreate a directory in the current working tree.
Gitlab Note SearchSearch for notes in a project.
Read FileRead the contents of a file.
Run CommandRun bash commands in the current working directory. Git commands are not supported.
Set Task StatusSet the status of a task.
Update EpicUpdate an epic in a group.
Update IssueUpdate an issue in a project.
Update Merge RequestUpdate a merge request. You can change the target branch, edit the title, or even close the MR.
Gitlab User SearchSearch for users in a project or group.
Gitlab Wiki Blob SearchSearch the contents of wikis in a project or group.
Create File With ContentsCreate a file and write content to it.
Gitlab Documentation SearchSearch the GitLab documentation for information.
Get Current UserGet the following information about the current user: username, job title, and preferred languages.
Add New TaskAdd a task.
Create Vulnerability IssueCreate an issue linked to security vulnerabilities in a project. You must specify the project by its full path. For example, ‘group/subgroup/project’. You can create an issue linked to vulnerabilities by ID. You can provide up to 100 IDs at once.
Read FilesRead the contents of files.
Get Work ItemGet a work item from a group or project. You must provide either the group_id/project_id and work_item_iid, or the URL to the work item.
Create PlanCreate a list of tasks.
Get PlanGet a list of tasks.
Update Task DescriptionUpdate the description of a task.
Revert To Detected VulnerabilityRevert a vulnerability’s state to detected. You can provide an optional comment with a reason for reverting. You must identify the vulnerability by its ID.
Get Previous Session ContextGet context from a previous session.
List Repository TreeList files and directories in a repository. To identify a project you must provide either a project_id or the URL to the project. You can specify a path to get contents of a subdirectory or a specific ref.
Create Work Item NoteAdd a note to a work item. Quick actions are not supported.
Remove TaskRemove a task from a list of tasks. You must specify the task by its ID.
Update Vulnerability SeverityUpdate the severity level of vulnerabilities in a project. You must provide the full path of the project. You can provide an optional comment explaining the update.
List Project Audit EventsList audit events for a project. You must have the Owner role to access project audit events.
List Group Audit EventsList audit events for a group. You must have the Owner role to access group audit events.
Link Vulnerability To IssueLink an issue to security vulnerabilities in a project. You must provide the full path of the project. You can provide up to 100 vulnerability IDs at once.
List Instance Audit EventsList instance-level audit events. You must be an administrator to see instance audit events.
Get Vulnerability DetailsGet the following information about a vulnerability specified by ID: basic vulnerability information, location details, CVE enrichment data, detection pipeline information, and detailed vulnerability report data.
Dismiss VulnerabilityDismiss a security vulnerability in a project. You must provide the full path of the project. You can provide an optional comment explaining the dismissal.
Confirm VulnerabilityChange the state of a vulnerability in a project to CONFIRMED.
Update Work ItemUpdate an existing work item in a group or project. Quick actions are not supported.
List Work ItemsList work items in a project or group.
Create CommitCreate a commit with multiple file actions in a repository. To identify the project you must provide either a project_id the URL to the project. Actions include creating, updating, deleting, moving, or changing file permissions.
List VulnerabilitiesList security vulnerabilities in a project. You must provide the full project path. You can filter vulnerabilities by severity level and report type.
Get Work Item NotesGet all notes for a work item. To identify a work item you must provide either a group_id/project_id and work_item_iid, or the URL to the work item.
Create Work ItemCreate a work item in a group or project. Quick actions are not supported.
Get Wiki PageGet a wiki page from a project or group, including all its comments. You must provide the slug of the wiki page and either the project_id or group_id.
Get Security Finding DetailsGet the details of a potential vulnerability by its ID and the ID of the pipeline scan that identified it.
Gitlab Api GetMake read-only GET requests to any REST API endpoint. Supports both direct API endpoint paths and resource URLs.
Gitlab GraphqlExecute read-only GraphQL queries against the GraphQL API.
Link Vulnerability To Merge RequestLink a security vulnerability to a merge request in a project using GraphQL. You must provide the full path of the project. The tool supports linking a vulnerability to a merge request by ID. The merge request ID is its global ID.
Get Pipeline Failing JobsGet the IDs for failed jobs in a pipeline. You can identify a specific pipeline ID, or ask for all failing jobs in a merge request.
Run TestsExecute test commands for any language or framework.
Extract Lines From TextExtract specific lines from text.
List Security FindingsList ephemeral security findings from a specific pipeline security scan.
Build Review Merge Request ContextBuild comprehensive merge request context for code review. Fetches MR details, AI-reviewable diffs, and file contents.
Post Sast Fp Analysis To GitlabPost SAST false positive detection analysis results.
Post Duo Code ReviewPost a GitLab Duo code review to a merge request.