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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gitlab_create_branch"
}
}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. |