extract_critical_frames
Extracts key screenshots from a Playwright trace around a test failure, pairing each frame with its test step title for root-cause analysis. Useful for debugging CI failures.
Instructions
Extracts key screencast screenshots (base64 JPEG) from a temporal window around a test failure or the end of the trace, resolved with their associated test step titles.
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": "extract_critical_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of screenshots to return (default 10) | |
| trace_path | Yes | Absolute path to trace.zip, or a URL (https://) to download it from | |
| lookback_ms | No | Lookback duration before failure in ms (default 5000) | |
| lookforward_ms | No | Lookforward duration after failure in ms (default 1000) |