exec_process
Execute a binary directly with an explicit argument vector, bypassing shell parsing and quoting for reliable script, Git, and structured command runs.
Instructions
Execute one binary with an explicit argv vector, without shell parsing or quoting. Prefer this over shell_command for scripts, Git helpers, and structured command invocation.
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": {
"executable": "<executable>"
},
"name": "exec_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables merged over the server environment. | |
| args | No | Argument vector passed directly to the executable. | |
| stdin | No | UTF-8 text written to stdin before it is closed. | |
| workdir | No | Working directory; defaults to the workspace. | |
| executable | Yes | Executable name or path. | |
| timeout_ms | No | ||
| expect_exit_code | No | Optional expected exit code. | |
| max_output_bytes | No |