Skip to main content
Glama

get_screenshot

Retrieves a screenshot from a TraceBug bug report as an image so you can inspect exactly what the page showed at a given step. Pick the report file and a zero-based screenshot index.

Instructions

Get one screenshot from a TraceBug bug report as an image. Screenshots are auto-named from the action that triggered them (e.g. 01_click_submit.png).

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_screenshot"
  }
}

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.
indexNoZero-based screenshot index (default 0). list_bug_reports shows the count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does disclose that the return value is an image and explains the auto-naming convention of the underlying files. It stays silent on failure behavior (for example, an out-of-range index), on image format or size limits, and on how the image is delivered. Useful but partial disclosure for an annotation-free 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 short sentences, with the core purpose front-loaded and nothing padding the text. The naming-convention sentence earns its place by helping identify a screenshot, though it is secondary to the main action.

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?

For a two-parameter read tool with full schema coverage, the description adequately covers what is returned as an image, which compensates for the absent output schema. It still leaves error behavior and image delivery details unstated, so an agent cannot fully anticipate failure modes.

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 both file and index are already fully documented, and baseline is 3. The description adds only tangential meaning through the auto-naming convention, which hints at how screenshot order relates to actions and gives the agent no new guidance on file resolution or index selection.

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: 'Get one screenshot from a TraceBug bug report as an image.' The reference to a single screenshot and the image return format clearly separate it from siblings like get_bug_report or get_audit, though no sibling is named explicitly.

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 only implied — an agent infers it should call this when it needs a screenshot from a report. There is no statement of when to prefer this over get_bug_report or other siblings, and no handling guidance for a missing index. The file/index guidance lives in the schema, not the description.

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