create_branch
Create a new GitLab branch in a specified repository. Pass the project owner, repository path, and branch name; optionally set the source branch.
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": {
"owner": "<owner>",
"repo": "<repo>",
"branch": "<branch>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Project path/name (e.g. 'pro-portal-onboarding-and-retention') | |
| owner | Yes | Project namespace/path (e.g. 'pro/portal/frontends') or numeric Project ID | |
| branch | Yes | Name for the new branch | |
| fromBranch | No | Optional: source branch to create from (defaults to the repository's default branch) |