git_stage
Stage files for git commit after validating each path against FSGUARD_ROOT, blocking any path that escapes the protected directory.
Instructions
Stage files for commit. Every path is validated against FSGUARD_ROOT before being staged — a path that would escape the root fails the whole call, staging nothing.
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": {
"repo_path": "<repo_path>",
"paths": "<paths>"
},
"name": "git_stage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| repo_path | Yes |