Webhook Crash Lab
v0.2.4Lets coding agents crash-test webhook handlers and re-run until they survive retries.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_crash_lab Run webhook-crash-lab
Replay hostile webhook deliveries (duplicates, concurrent duplicates, out-of-order events, forged/missing/stale signatures, malformed JSON) against the handler described by a crash-lab config file, and return structured failures with fix hints. Use a TEST database and test secret only. Create a config with `npx webhook-crash-lab init` if none exists.
| Parameter | Type | Description |
|---|---|---|
configPath * | string | Path to a crash-lab config (.mjs, .js, .cjs, .ts, .mts or .cts), relative to cwd |
cwd | string | Project directory; defaults to the server working directory |
reportPath | string | Also write the full JSON report here |
scenarios | array | Run only these scenarios |
run_demo Run the built-in demo
Run crash-lab against its built-in demo credits app. "broken" shows the typical AI-generated Stripe handler failing; "fixed" shows the same app done right. Needs no config. Use it to show what crash-lab checks before setting up a real config.
| Parameter | Type | Description |
|---|---|---|
mode | string |
explain_report Explain a crash-lab report
Read a JSON report produced by `webhook-crash-lab run --json <file>` (e.g. from CI) and return the failures in fix order, with why/fix hints and next steps.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
report | Report JSON, as text or object | |
reportPath | string |
list_scenarios List crash-lab scenarios
List every scenario crash-lab can run, with what it sends, why it matters in production, and how to fix a failure.