gitlab_add_branch
Creates a new GitLab branch from a specified source branch, tag, or SHA, enabling isolated development without disrupting the main codebase.
Instructions
Creates a branch (POST /repository/branches).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"branch": "<branch>",
"ref": "<ref>"
},
"name": "gitlab_add_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Source branch, tag, or SHA. | |
| branch | Yes | ||
| projectId | Yes | Numeric ID or path with namespace, e.g. group/project. |