git
Run version-control commands in the workspace with branch-policy checks that block protected-branch force pushes, hard resets, and rebases; unresolved force destinations are refused for review.
Instructions
Execute Git in the workspace after structured branch-policy checks. Use this rather than run_shell for Git operations. Protected-branch force pushes, hard resets and rebases are blocked; unresolved force destinations are refused for human review. Quoting is preserved. Returns truncated stdout/stderr or a refusal prefixed with ⛔; it is not a proof of success.
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": {
"args": "<args>"
},
"name": "git"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Git subcommand and arguments without a leading 'git', for example 'status --short' or 'commit -m "fix input"'. Shell syntax and global options such as -C are not supported. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |