grf_switch_branch
Switch a Git reference repository to a specified branch, enabling AI assistants to load and sync code from the chosen 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": {
"name": "<name>",
"branch": "<branch>"
},
"name": "grf_switch_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 仓库名称 | |
| branch | Yes | 目标分支 |