run_command
Execute shell commands in any working directory and retrieve stdout, stderr, and exit code for automation and debugging.
Instructions
Execute a shell command in the given working directory. Returns stdout, stderr, and exit code.
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 |
|---|---|---|---|
| command | Yes | Command to run | |
| cwd | No | Working directory (defaults to workspace root or cwd) | |
| timeout_ms | No | Timeout in milliseconds (default 30000) |