pg_host_exec
Run a pinned system developer binary inside a project directory with guardrail checks against destructive flags and paths to safely execute commands such as git status.
Instructions
Execute a pinned system developer binary (shell=False, guardrail-checked against destructive flags/paths) inside a project directory.
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": {
"cwd": "<cwd>",
"argv": "<argv>"
},
"name": "pg_host_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Working directory inside user workspace. | |
| argv | Yes | Command argv list (e.g. ['git', 'status', '-s']). | |
| timeout | No | Timeout in seconds (default: 120). |