checkout_branch
Switch to a specified branch in a local repository, creating it if needed. Directly set the active branch for a given repo path and branch name.
Instructions
Switch to a branch, optionally creating it.
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_path": "<repo_path>",
"branch": "<branch>"
},
"name": "checkout_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| repo_path | Yes | ||
| create_new | No |