Skip to main content
Glama

get_playwright_test

Retrieve the generated Playwright spec that replays a TraceBug bug report session, fails while the bug exists, and passes once fixed—so you can reproduce and verify the fix.

Instructions

Get the generated Playwright spec that REPLAYS this bug report's session and asserts the captured failure is gone — the test fails while the bug exists and passes once fixed. Save it, run it to reproduce, then use it to verify your fix.

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": {
      "file": "<file>"
    },
    "name": "get_playwright_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe report to read: a path to a TraceBug export file (.html), absolute or relative to the server's base directory — or just the filename, or a fragment of the filename or report title. Get exact paths from list_bug_reports.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose useful behavior: the spec fails while the bug exists and passes after the fix, and it is meant to be saved and run. It does not say whether the spec always exists, what happens if none was generated, or whether the call has side effects, so significant gaps remain for an unannotated tool.

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

Conciseness5/5

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

Two sentences with no filler. The identity of the artifact comes first, followed by its behavior and the intended workflow, so the agent gets the key point immediately.

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?

For a one-parameter read tool with no output schema, the description covers what is returned (a Playwright spec file) and what to do with it. The only real gap is the failure mode when no spec has been generated.

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%, and the single 'file' parameter is documented down to the path/filename/fragment resolution and the pointer to list_bug_reports. The description adds nothing about the parameter, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: retrieving the generated Playwright spec tied to a bug report's session. It also explains what the artifact does ('replays this session', 'asserts the captured failure is gone'), which separates it from look-alikes such as get_repro_steps. It stops short of explicitly saying it is not the step list, so a 4 rather than a 5.

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 concrete workflow: save the spec, run it to reproduce, then use it to verify the fix. That covers when the tool is useful, but it names no alternative and gives no exclusion (for example, when to prefer get_repro_steps or get_bug_report instead).

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