Create Branch Tool
create_branch_toolCreate a new GitLab repository branch from a branch name or commit SHA by specifying the project ID, new branch name, and source ref.
Instructions
Create a new branch in a GitLab repository.
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>",
"ref": "<ref>"
},
"name": "create_branch_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Branch name or commit SHA to create from | |
| branch | Yes | Name of the new branch | |
| project_id | Yes | Project ID or path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||