Run a command
runExecute shell commands and retrieve only matching lines, while storing full output on disk for later review via peek, reducing context usage.
Instructions
Run a shell command and return only the lines that mattered instead of all of its output. Every byte is kept on disk and never enters the conversation, so a 5,000-line test run costs a few dozen lines of context -- and goes on costing nothing on every later turn, because tool results are re-sent with the rest of the transcript. The lines shown are the command's own, byte for byte; each gap states how many lines it stands for, and peek with the returned handle brings any range back in full. Prefer this over a plain shell tool whenever the output may be long or noisy. When you already know what you are looking for -- a symbol, a test name, an error code -- pass it as keep and every line containing it comes back whatever else was chosen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| keep | No | ||
| budget | No | ||
| command | Yes | ||
| timeout | No | ||
| background | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |