create_branch
Creates a new branch in a GitHub repository from an existing branch or commit SHA. Inputs include owner, repo, branch name, and source reference.
Instructions
Create a new branch in a GitHub repository from an existing branch or commit SHA. Docs: https://docs.github.com/en/rest/git/refs#create-a-reference
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>",
"from": "<from>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source branch name or commit SHA to create the new branch from | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) | |
| branch | Yes | Name for the new branch (without the refs/heads/ prefix) |