Skip to main content
Glama
baramubarok

playwright-generate-mcp

by baramubarok

Get failure details

get_failure_details

Retrieve full diagnostic details for a failing Playwright test from a prior report: location, steps, logs, console/page errors, failed requests, and artifact paths. Use testId when titles repeat.

Instructions

Get the full diagnostic breakdown for one failing test from a previous run_playwright_test report: exact location, recent steps, call log, browser console errors, page errors, failed requests, and screenshot/trace/video/error-context paths. Pass testId when titles repeat (e.g. the same spec in several projects).

Input Schema

NameRequiredDescriptionDefault
testIdNoStable test identity from the run output; required when titles are duplicated (e.g. one spec in several projects).
testTitleYesExact title of the failing test, as returned by run_playwright_test.
reportPathYesThe `reportPath` returned by a previous run_playwright_test call for this run.
projectRootNoOptional project root used to authorize an in-project report path.

Output Schema

NameRequiredDescriptionDefault
testIdNo
locationNo
errorTypeYes
fullTitleNo
testTitleYes
videoPathNo
pageErrorsNo
projectNameNo
recentStepsNo
errorMessageYes
traceZipPathNo
consoleErrorsNo
networkErrorsNo
callLogExcerptNo
screenshotPathNo
errorContextPathNo
diagnosticsOmittedNo
diagnosticsSourcesNo
healingGateDirectiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description must carry the full behavioral burden. It does disclose that the tool reads from a previous run's report and enumerates what is surfaced, but it never states that the operation is read-only/side-effect free, nor what happens when testTitle/testId matches nothing. That leaves meaningful behavioral gaps for a no-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose before the conditional-parameter note. The long artifact enumeration is useful for selection but overlaps with the output schema, which slightly dilutes conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return values need not be explained in prose, and the description still covers the key precondition and the duplicate-title case. Only the absence of read-only/error behavior keeps it from being fully complete for a no-annotation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four parameters including the testId conditional requirement are already documented in the schema. The description's 'Pass testId when titles repeat' restates the schema rather than adding new syntax, format, or defaulting detail, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get the full diagnostic breakdown for one failing test') and pins the source to a previous run_playwright_test report, which separates it from run_playwright_test and generate_test_report at a glance. The enumerated payload (location, steps, call log, console/page errors, failed requests, artifact paths) makes the scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear precondition (a report from a prior run_playwright_test) and a concrete disambiguation rule ('Pass testId when titles repeat, e.g. the same spec in several projects'). It stops short of naming alternative tools for adjacent needs (e.g. generate_test_report for an overview), so no explicit when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.