git_update_from_git
Update a workspace to a specified Git commit, synchronizing items from the repository. Resolve conflicts by preferring workspace or remote changes to maintain the desired state.
Instructions
Update workspace from the connected Git repository (long-running)
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": {
"workspaceId": "<workspaceId>",
"remoteCommitHash": "<remoteCommitHash>"
},
"name": "git_update_from_git"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Update options | |
| workspaceId | Yes | The workspace ID | |
| workspaceHead | No | Workspace head object ID for concurrency control | |
| remoteCommitHash | Yes | The remote commit hash to update to | |
| conflictResolution | No | Conflict resolution settings |