create_branch
Create a new branch from an existing branch in a GitHub repository. Specify the repository, new branch name, and optional source branch.
Instructions
Create a new branch from another branch (default: the repo's default branch). push_files can also do this implicitly.
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": {
"repo": "<repo>",
"branch": "<branch>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (without owner) | |
| owner | No | Repo owner; defaults to GITHUB_DEFAULT_OWNER | |
| branch | Yes | Name for the new branch | |
| from_branch | No | Source branch (default: default branch) |