git_checkout_tool
Switches to a specified branch in a Git repository. Provide the repository path and branch name to change the current working branch.
Instructions
Switches to the specified 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": {
"repo_path": "<repo_path>",
"branch_name": "<branch_name>"
},
"name": "git_checkout_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the Git repository | |
| branch_name | Yes | Name of the branch to switch to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |