Triage Playwright Failure Trace
triage_failureDiagnose a Playwright trace.zip to classify failure causes, surface network and console errors, and return actionable fix recommendations without modifying files.
Instructions
Diagnose a Playwright failure trace.zip and return advisory fix recommendations as Markdown + JSON (classification, failedAction, networkErrors, consoleErrors, recommendations, tracePath) without modifying any files. If tracePath (local path to a .zip trace archive) is omitted, auto-discovers the newest trace under cwd; returns an error if no trace exists or the archive is unreadable. Use as the default entry point for full failure triage; prefer get_failed_network_calls or suggest_locator_fixes when you only need that single slice, or find_latest_trace to check trace existence first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "triage_failure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracePath | No | Absolute or relative path to a Playwright trace.zip archive (e.g. test-results/checkout/trace.zip). If omitted, automatically discovers the latest trace in the workspace. |