compare_traces
Compare passing and failing Playwright traces to pinpoint the first timing or structural divergence and summarize network differences, diagnosing flakiness.
Instructions
Compares a passing and a failing trace of the same test. Aligns actions by sequence, finds the first timing or structural divergence, and summarises network differences. Use to diagnose flakiness — what was different in the run that failed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"passing_trace_path": "<passing_trace_path>",
"failing_trace_path": "<failing_trace_path>"
},
"name": "compare_traces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failing_trace_path | Yes | Absolute path to the failing trace.zip | |
| passing_trace_path | Yes | Absolute path to the passing trace.zip |