create_branch
Create a new branch in a GitHub repository. Specify owner, repository, and branch name to organize development work and manage code changes.
Instructions
Create a new branch in a 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_name": "<branch_name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| branch_name | Yes | Name for the new branch | |
| from_branch | No | Source branch name (defaults to the repo's default branch) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |