Get Trace Analysis
get_trace_analysisDebug a failing Playwright test from its trace.zip: get a runbook for the Playwright CLI protocol, classify the failure, and propose a fix. Add projectId and testcase_id for a hosted trace URL.
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 | No | Project ID — required to resolve the hosted trace download URL | |
| 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 |