create_branch
Create a new Git branch from an existing reference in a Forgejo repository to isolate changes and support parallel development workflows.
Instructions
Create a branch named new_branch from old_ref.
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": "<new_branch>",
"old_ref": "<old_ref>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| owner | Yes | ||
| old_ref | Yes | ||
| new_branch | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||