create_branch
Create a new branch in a GitLab project by specifying the project ID, branch name, and optional source ref (branch or commit). Enables isolated development or feature work without disrupting the main codebase.
Instructions
Create a new branch in a GitLab 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": {
"project_id": "<project_id>",
"branch": "<branch>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Source branch/commit for new branch | |
| branch | Yes | Name for the new branch | |
| project_id | Yes | Project ID or URL-encoded path |