terminal-runner
Execute allow-listed npm, node, and tsc commands with a strict timeout while capturing output, enabling safe command verification and automated build checks.
Instructions
Executes allow-listed shell commands (npm, node, tsc) with enforced timeout and captured output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Optional list of arguments to pass to the command. | |
| command | Yes | Base command to execute from the allow list. | |
| timeoutMs | No | Execution timeout in milliseconds (default 30000, max 30000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| signal | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| command | Yes | ||
| exitCode | Yes | ||
| timedOut | Yes | ||
| durationMs | Yes | ||
| stderrTruncated | Yes | ||
| stdoutTruncated | Yes |