tarn_rerun_failed
Rerun only the failing tests from a prior test run, returning structured results for iterative debugging.
Instructions
Rerun only the failing (file, test) pairs from a prior run. Response shape matches tarn_run (run_id, artifacts, report) so agents can loop run → inspect → rerun without switching tool surfaces.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path to the project root. Defaults to the workspace root captured during MCP `initialize`, or the server process's current directory. | |
| env_name | No | Environment name to resolve for the rerun (loads tarn.env.{name}.yaml). | |
| report_mode | No | Which slice of the rerun's report to return inline. Defaults to `agent`. | |
| run_id | No | Source run identifier or alias to seed the selection from. Defaults to `last` (the workspace-level `.tarn/failures.json` pointer). | |
| vars | No | Variable overrides as key-value pairs. |