Analyze a test failure
get-failureAnalyze a single failure from the last Playwright run: full message, code frame, expected vs actual, stack trace, failed network requests, console errors, failure kind and concrete next steps.
Instructions
Analyze one failure from the most recent run-test execution: full message and code frame, expected vs actual, stack trace, failed network requests (4xx/5xx and dead endpoints), console errors, failure kind (assertion/timeout/browser-crash/syntax/config/server-unreachable) and concrete next steps. Use run-test 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": "get-failure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 1-based failure index from the last run (default 1) | |
| projectRoot | No | Only used to re-read the stored report |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false when the call failed (see error) or the tests it ran failed | |
| error | No | ||
| index | No | ||
| total | No | ||
| failure | No |