Create Branch
gitlab_create_branchCreate a new branch in a GitLab project from a specified branch or commit SHA. Provide project ID, branch name, and source ref.
Instructions
Create a new branch in the project
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_create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Branch name or commit SHA to create branch from | |
| branch | Yes | Name for the new branch | |
| projectId | Yes | The ID or URL-encoded path of the project |