Git Pull / Push / Fetch
git_syncRun Git pull, push, or fetch to synchronize a local repository with a remote, specifying repo path, remote, and branch as needed.
Instructions
执行 Git 远端同步操作(pull、push 或 fetch)。
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": {
"action": "<action>"
},
"name": "git_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 同步动作 | |
| branch | No | 分支名称 | |
| remote | No | 远端名称(如 origin) | |
| repoPath | No | Git 仓库路径 |