gitlab_create_branch
Create a new GitLab branch from a specified source ref (branch, tag, or SHA) using the GitLab REST API.
Instructions
Create repository branch by GitLab REST API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | GitLab project ID. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_CODE_PROJECT_ID overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| branch | No | Branch name to create. | |
| ref | No | Source ref (branch/tag/SHA). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded. | |
| tool | Yes | Tool name. | |
| data | No | Created GitLab branch payload. | |
| error_type | No | Error type when ok=false. | |
| message | No | Error message when ok=false. |