debug_runner
Run commands, tests, or scripts and analyze failures with error types, stack traces, and suggested fixes. Automatically detects runtime for scripts in multiple languages, deterministic without LLM.
Instructions
Run command/script/test and analyze failures: 14 error types, 4-language stack traces, suggested actions. script mode auto-picks runtime (js/py/go/rs/sh). Deterministic, zero LLM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory relative to workspace_dir (e.g. "0FTYcloud"). Scripts that must run in a subdirectory no longer need cd workarounds. | |
| test | No | Test command to run in workspace_dir (e.g. "npm test", "pytest") | |
| script | No | Script path relative to workspace_dir to run + auto-analyze (js/mjs/py/go/rs/sh by extension). Pass exactly one of command/script/test; script wins over command | |
| command | No | Shell command to run (e.g. "node src/main.js") | |
| timeout | No | Timeout in ms (default: 30000, min 1000) | |
| workspace_dir | Yes | REQUIRED: absolute path of the project root to run in |