Skip to main content
Glama

scaffold_playwright_test

Generate an executable Playwright E2E test in TypeScript or JavaScript from captured QuickCast interactions, clicks, and URLs to reproduce recorded user flows.

Instructions

Generate an executable Playwright (TypeScript or JavaScript) E2E reproduction test based on the interactions, clicks, and URLs captured during the QuickCast recording.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoLanguage to output ("typescript" or "javascript"). Default is "typescript".typescript
test_nameNoName for the Playwright test block.
session_idNoOptional session ID. If omitted, uses latest recording.
target_urlNoTarget starting URL (overrides recorded page URL if provided).
session_dataNoOptional raw session JSON string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals that the output is an executable Playwright test and the input source, but says nothing about permissions, side effects (e.g., writing a file), error conditions, or what the tool returns.

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?

A single sentence that is front-loaded with the core action and output type, with no redundant or unnecessary phrasing.

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

Completeness3/5

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

The description adequately states what the tool generates and from what data, which is enough for an agent to select it. However, with no output schema and no annotations, it should ideally explain the return format or whether a file is written, leaving a notable gap for correct invocation.

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 description coverage is 100%, so all five parameters are already documented in the input schema. The description adds no parameter-level detail beyond mentioning TypeScript or JavaScript and the recorded interactions, making the baseline score of 3 appropriate.

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?

The description names a specific verb (Generate), resource (executable Playwright E2E reproduction test), and input source (interactions, clicks, URLs from QuickCast recording). This clearly distinguishes it from sibling tools like generate_sop_guide and format_github_bug_report.

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

Usage Guidelines3/5

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

Usage is implied by the phrase 'based on the interactions, clicks, and URLs captured during the QuickCast recording,' which suggests using it after a recording exists. However, it does not state when to choose this tool over alternatives or any exclusions.

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