Run a command, get compact output
runExecute shell commands and return compact output that preserves errors and summaries while keeping the full log searchable and pageable for noisy builds, tests, and installs.
Instructions
Runs a shell command and returns a compact view of its output: the first and last lines, every error with nearby context, and summary lines, with repeated lines collapsed. The full output is kept under a run id; use grep_output or read_output to see anything omitted. Prefer this over a plain shell for builds, tests, installs and anything noisy.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. Defaults to the server's working directory. | |
| command | Yes | Shell command to run, e.g. `npm test`. | |
| budget_lines | No | Most output lines to return. | |
| timeout_seconds | No | Kill the command after this many seconds. |