Skip to main content
Glama

Get screenshot

get_screenshot
Read-only

PNG screenshot of a frame, rendered exactly as in the editor. nodeId zooms on one element, region {y, height} shows one slice of a long page, and scale 2 or 3 shows details (alignment, icons) at phone pixel density.

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": {
      "fileId": "<fileId>",
      "frameId": "<frameId>"
    },
    "name": "get_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoPixel density, decimals allowed (3 = iPhone, 2.625 = Pixel).
fileIdYes
nodeIdNoCrop to this element of the frame; id#2 for its 2nd copy in a template's rows; instanceId>nodeId for an element of a component drawn by an instance (the component's own element id alone works when the frame has one such instance).
regionNoOnly this box of the frame, in frame CSS px: {y, height} (x and width default to the whole width). For long pages: inspect them in slices, e.g. {y: 0, height: 1200}, then {y: 1200, height: 1200}…
frameIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered and the description's job is only to add context. It does contribute the notable claim that rendering matches the editor exactly, which matters for verification workflows, but says nothing about how the image is returned, size limits, or behavior when nodeId no longer exists in the frame.

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, front-loaded with the deliverable, then three compact clauses each mapping to one parameter. No filler, no repetition of the title, and the parenthetical examples are doing real work rather than padding.

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 five-parameter tool with a nested region object and no output schema, the description covers the three non-obvious parameters well enough to call the tool correctly. The remaining gap is the two required ids and the return mechanics (image payload vs. reference), which an agent must guess at.

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

Parameters4/5

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

Schema coverage is 60%, above the baseline threshold, and the description still adds genuinely new meaning: scale is framed as a detail-inspection tactic (alignment, icons at phone density), and region is framed as a long-page tiling strategy with the x/width defaulting behavior implied. The two required identifiers, fileId and frameId, are never explained in either the schema or the description, which keeps this below 5.

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?

The description names a specific verb and deliverable ("PNG screenshot of a frame") plus a fidelity guarantee ("rendered exactly as in the editor"), which is enough for an agent to distinguish this from text/HTML siblings like get_html or export_code. It stops short of explicitly naming a sibling it is not, so a 5 is not warranted.

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 guidance is present but it is parameter-level rather than tool-selection-level: it explains that nodeId zooms on an element, region slices a long page, and scale 2-3 reveals pixel-level detail. There is no statement of when to choose get_screenshot over get_html, export_code, or static_map, and no prerequisites or exclusions are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.