Skip to main content
Glama
vola-trebla

playwright-trace-decoder-mcp

by vola-trebla

extract_critical_frames

Extracts key screenshots from a Playwright trace around a test failure, pairing each frame with its test step title for root-cause analysis. Useful for debugging CI failures.

Instructions

Extracts key screencast screenshots (base64 JPEG) from a temporal window around a test failure or the end of the trace, resolved with their associated test step titles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of screenshots to return (default 10)
trace_pathYesAbsolute path to trace.zip, or a URL (https://) to download it from
lookback_msNoLookback duration before failure in ms (default 5000)
lookforward_msNoLookforward duration after failure in ms (default 1000)
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: output is base64 JPEG screenshots, selection is based on a temporal window, and results are associated with test step titles. This goes beyond a minimal statement, though it doesn't cover edge cases or error handling.

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?

The description is a single, information-dense sentence that efficiently conveys the action, output format, temporal scope, and result association. No redundant words; every phrase adds distinct value.

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?

With no output schema, the description provides a basic idea of the return value (screenshots with step titles) but lacks explicit structural details such as whether it returns a list, ordering, or how 'resolved' is presented. Given moderate complexity, the description is adequate but leaves some ambiguity.

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% with clear descriptions for all four parameters (trace_path, limit, lookback_ms, lookforward_ms). The description reiterates the temporal-window concept but adds no extra semantics beyond what the schema already provides, so the baseline 3 is 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 clearly states the tool's function: extracting key screencast screenshots (base64 JPEG) from a temporal window around failure or trace end, with associated test step titles. It explicitly distinguishes itself from the sibling get_screenshot_at_failure by emphasizing multiple screenshots within a window and the step-title resolution.

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?

The description provides clear context for when to use the tool: to capture visual evidence from a window around a test failure or the end of the trace. It doesn't explicitly mention alternatives or when-not-to-use, but the temporal-window context implies its specific use case among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vola-trebla/playwright-trace-decoder-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server