get_screenshot_at_failure
Get the screenshot closest to the moment of failure from a Playwright trace, returned as base64 JPEG. Use when the accessibility tree is empty or unhelpful to see exactly what was on screen.
Instructions
Returns the screenshot (base64 JPEG) from the trace closest to the moment of failure. Use when get_aria_accessibility_tree returns an empty or unhelpful tree — the image shows exactly what was on screen. Pass screenshot_index to retrieve any specific screenshot from the trace (0-based); omit to get the one nearest to the failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_path | Yes | Absolute path to trace.zip, or a URL (https://) to download it from | |
| screenshot_index | No | 0-based index into the screenshot list. Omit to get the one at failure. |