create_branch
Creates a new branch in a Gitea repository from a specified source branch, enabling isolated development or testing without altering the main codebase.
Instructions
Creates a new branch in a Gitea repository from a source branch.
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>",
"new_branch_name": "<new_branch_name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| owner | Yes | ||
| source_branch | No | main | |
| new_branch_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |