{ "name": "glab", "runtime": "component", "exports": { "setup": { "description": "Ensure glab is installed and verified, reusing an available matching version, and publish its environment.", "input": { "type": "object", "properties": { "version": { "type": "string", "description": "Tool release or supported channel to install; omitted values use the documented default." }, "installDir": { "type": "string", "description": "Absolute per-user installation prefix; omit for native package installations." }, "packageName": { "type": "string", "description": "Native package or port selector overriding the default repository package name." }, "sudo": { "type": "boolean", "description": "Use noninteractive sudo for native package or system installation; defaults to false." } }, "required": [], "additionalProperties": false }, "output": { "type": "object", "required": [ "tool", "version", "binDir", "environment" ], "properties": { "tool": { "type": "string" }, "version": { "type": "string" }, "binDir": { "type": "string" }, "environment": { "type": "array", "items": { "type": "object", "required": [ "name", "value" ], "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "additionalProperties": false } } }, "additionalProperties": false } }, "run": { "description": "Run any native glab command with literal argv.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "arguments": { "type": "string", "minLength": 1, "description": "Required comma-separated glab command and literal argument tokens; never JSON." } }, "required": [ "runDir", "arguments" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "version": { "description": "Report the installed glab CLI version.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "auth_status": { "description": "Check inherited GitLab authentication without interactive login.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "hostname": { "type": "string", "minLength": 1, "description": "GitLab hostname to inspect." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "repo_view": { "description": "Inspect GitLab repository metadata without opening a browser.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "mr_create": { "description": "Create a noninteractive merge request with explicit title and description.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "title": { "type": "string", "minLength": 1, "description": "Merge request title." }, "description": { "type": "string", "minLength": 1, "description": "Literal merge request description." }, "sourceBranch": { "type": "string", "minLength": 1, "description": "Source branch." }, "targetBranch": { "type": "string", "minLength": 1, "description": "Target branch." }, "draft": { "type": "boolean", "description": "Create a draft merge request." }, "yes": { "type": "boolean", "default": true, "description": "Skip confirmation after explicit title and description. Default: true." }, "labels": { "type": "string", "description": "Comma-separated label names. Empty entries are rejected; CSV quotes preserve literal commas." }, "reviewers": { "type": "string", "description": "Comma-separated reviewer handles. Empty entries are rejected; CSV quotes preserve literal commas." }, "assignees": { "type": "string", "description": "Comma-separated assignee handles. Empty entries are rejected; CSV quotes preserve literal commas." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "title", "description" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "mr_view": { "description": "Read a merge request and its state.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "number": { "type": "string", "minLength": 1, "description": "Merge request IID, branch or URL selector." }, "output": { "type": "string", "minLength": 1, "default": "json", "enum": [ "json", "text" ], "description": "Result format. Default: \"json\". Allowed values: json, text." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "number" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "mr_list": { "description": "List merge requests in a machine-readable format.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "sourceBranch": { "type": "string", "minLength": 1, "description": "Source branch filter." }, "targetBranch": { "type": "string", "minLength": 1, "description": "Target branch filter." }, "output": { "type": "string", "minLength": 1, "default": "json", "enum": [ "json", "text" ], "description": "Result format. Default: \"json\". Allowed values: json, text." }, "perPage": { "type": "integer", "minimum": 1, "default": 30, "description": "Results per page. Default: 30." }, "page": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number. Default: 1." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "mr_checkout": { "description": "Check out a merge request locally.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "number": { "type": "string", "minLength": 1, "description": "Merge request IID, branch or URL selector." }, "branch": { "type": "string", "minLength": 1, "description": "Local branch name." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "number" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "mr_note": { "description": "Publish a pipeline comment on a merge request.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "number": { "type": "string", "minLength": 1, "description": "Merge request IID, branch or URL selector." }, "message": { "type": "string", "minLength": 1, "description": "Literal merge request comment." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "number", "message" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "mr_merge": { "description": "Merge a selected merge request; source branch deletion remains opt-in.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "number": { "type": "string", "minLength": 1, "description": "Merge request IID, branch or URL selector." }, "yes": { "type": "boolean", "default": true, "description": "Skip confirmation for this explicitly requested merge. Default: true." }, "squash": { "type": "boolean", "description": "Squash commits before merging." }, "removeSourceBranch": { "type": "boolean", "description": "Explicitly delete the source branch after merge." }, "sha": { "type": "string", "minLength": 1, "description": "Expected source commit SHA." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "number" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "release_create": { "description": "Create a GitLab release and attach optional assets; existing releases are protected by default.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "tag": { "type": "string", "minLength": 1, "description": "Release tag." }, "files": { "type": "string", "description": "Optional asset paths." }, "name": { "type": "string", "minLength": 1, "description": "Release title." }, "notes": { "type": "string", "minLength": 1, "description": "Literal release notes." }, "notesFile": { "type": "string", "minLength": 1, "description": "Existing release-notes file." }, "ref": { "type": "string", "minLength": 1, "description": "Commit or branch used when creating a missing tag." }, "noUpdate": { "type": "boolean", "default": true, "description": "Refuse to update an existing release. Default: true." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "tag" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "release_upload": { "description": "Upload files to an existing GitLab release.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "tag": { "type": "string", "minLength": 1, "description": "Existing release tag." }, "files": { "type": "string", "minLength": 1, "description": "Required comma-separated existing release asset paths." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "tag", "files" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "release_download": { "description": "Download selected GitLab release assets.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "tag": { "type": "string", "minLength": 1, "description": "Release tag; omitted selects the native latest release." }, "assetNames": { "type": "string", "description": "Comma-separated asset filename patterns. Empty entries are rejected; CSV quotes preserve literal commas." }, "directory": { "type": "string", "minLength": 1, "description": "Destination directory." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "ci_run": { "description": "Create a GitLab pipeline with named variables or inputs.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "branch": { "type": "string", "minLength": 1, "description": "Branch or ref to run." }, "mr": { "type": "boolean", "description": "Run the merge request pipeline." }, "variables": { "type": "string", "description": "Comma-separated KEY:VALUE pipeline variables. Empty entries are rejected; CSV quotes preserve literal commas." }, "inputs": { "type": "string", "description": "Comma-separated KEY:VALUE or KEY:type(value) pipeline inputs. Empty entries are rejected; CSV quotes preserve literal commas." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "ci_status": { "description": "Inspect or watch a GitLab pipeline status.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "branch": { "type": "string", "minLength": 1, "description": "Branch selector." }, "live": { "type": "boolean", "description": "Watch pipeline status until completion." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "ci_get": { "description": "Read detailed pipeline information.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "pipelineId": { "type": "integer", "minimum": 1, "description": "Pipeline ID." }, "branch": { "type": "string", "minLength": 1, "description": "Branch selector." }, "output": { "type": "string", "minLength": 1, "default": "json", "enum": [ "json", "text" ], "description": "Result format. Default: \"json\". Allowed values: json, text." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "ci_retry": { "description": "Retry one explicitly selected GitLab CI job, optionally within a selected pipeline.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "job": { "type": "string", "minLength": 1, "description": "Required job ID or job name; prevents interactive job selection." }, "pipelineId": { "type": "integer", "minimum": 1, "description": "Pipeline to search for the selected job." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "job" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "ci_cancel": { "description": "Cancel one explicitly selected pipeline using glab ci cancel pipeline.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "pipelineId": { "type": "integer", "minimum": 1, "description": "Pipeline ID to cancel." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "pipelineId" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "ci_lint": { "description": "Validate GitLab CI configuration using the native server lint API.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "repo": { "type": "string", "minLength": 1, "description": "Target OWNER/REPO, GitLab group/project, or repository URL; omit to use the local checkout." }, "file": { "type": "string", "minLength": 1, "description": "Existing GitLab CI configuration file." }, "dryRun": { "type": "boolean", "description": "Simulate pipeline creation." }, "ref": { "type": "string", "minLength": 1, "description": "Branch or tag used for simulation." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "api": { "description": "Call the authenticated GitLab API with scalar fields or a body file.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "string", "description": "Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas." }, "endpoint": { "type": "string", "minLength": 1, "description": "GitLab API endpoint path." }, "method": { "type": "string", "minLength": 1, "description": "HTTP request method." }, "hostname": { "type": "string", "minLength": 1, "description": "GitLab hostname." }, "fields": { "type": "string", "description": "Comma-separated request KEY=VALUE fields. Empty entries are rejected; CSV quotes preserve literal commas." }, "inputFile": { "type": "string", "minLength": 1, "description": "Existing request-body file." }, "paginate": { "type": "boolean", "description": "Fetch every result page." }, "extraArgs": { "type": "string", "description": "Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas." } }, "required": [ "runDir", "endpoint" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } } } }