get_trace_analysis
Analyze Playwright trace.zip files to debug failing tests, providing a step-by-step CLI runbook to classify the failure and propose a fix.
Instructions
Debug a failing Playwright test from its trace.zip using the Playwright agent CLI (npx playwright trace …, Playwright 1.59+). Returns a runbook that teaches the exact CLI protocol (open → actions → action → snapshot → close) plus how to classify the failure and propose a fix. Pass projectId + testcase_id (the Playwright pw_test_id) to also get a short-lived download URL for that case's hosted trace; optionally scope with testrun_id. Omit the ids to just get the runbook for a trace.zip you already have locally. The analysis runs on your machine — download the trace, run the CLI commands yourself, then report the root cause and fix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project ID (Required). The TestDino project identifier. | |
| testrun_id | No | Optional run scope for testcase_id (single run). | |
| testcase_id | No | Playwright pw_test_id of the failing case whose hosted trace to resolve. |