run_command
Execute a shell command and capture stdout/stderr output with optional working directory, environment variables, and timeout settings.
Instructions
Execute a shell command and return stdout/stderr
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": {
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| env | No | Additional environment variables | |
| command | Yes | Shell command to execute | |
| timeoutMs | No |