get_causal_chain_for_failure
Walks back from a failed Playwright action to build a chronological chain of preceding actions, network errors, and console errors, pinpointing the most likely root cause.
Instructions
Walks backwards from the failed action and builds a chronological chain of preceding actions, network errors, and console errors. Surfaces the most likely root cause.
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": {
"trace_path": "<trace_path>"
},
"name": "get_causal_chain_for_failure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_path | Yes | Absolute path to trace.zip, or a URL (https://) to download it from | |
| lookback_ms | No | How far back from the failure to look, in milliseconds (default 5000) |