Run Command
run_commandExecute a shell command in a specified working directory and return its output, with a configurable timeout for running project checks, scripts, or build tasks.
Instructions
Run a shell command and return its output. Always set a reasonable timeout. Avoid destructive commands (rm -rf, etc.).
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 | The shell command to run. | |
| workdir | No | Working directory for the command (default: server CWD). | |
| timeout_seconds | No | Maximum seconds to wait (default 60, max 300). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |