git_command
Execute Git subcommands in a controlled local repository. Blocks destructive operations such as push, force, and delete while allowing other mutating commands.
Instructions
Voer één Git-subcommando uit in een toegestane lokale repository.
path moet onder allowed_write_dirs vallen en een .git-directory
bevatten. command bevat alles na git -C <path> en wordt met
shell-achtige argumentquoting opgesplitst, zonder shelluitbreiding.
Push, force, delete, branch -d en reset --hard worden geblokkeerd;
andere muterende Git-commando's kunnen de repository wel wijzigen.
De timeout is 30 seconden en stdout, stderr en exitcode worden geretourneerd.
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": {
"path": "<path>",
"command": "<command>"
},
"name": "git_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||