Skip to main content
Glama

get_screenshot

Render the selected Figma node as an inline PNG, JPG, or SVG image for visual inspection, automatically scaling it to stay within a set pixel limit.

Instructions

Render a node as an image and return it inline. nodeId defaults to the first selected node. PNG/JPG come back as an image plus a text line 'name (id) w×h'; SVG comes back as SVG markup text. PDF cannot be shown inline — use save_screenshots to write it to disk. The scale is lowered automatically so the longest side stays ≤ maxDimension (default 4096 px).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
scaleNo0.1–4, default 1 (PNG/JPG only)
formatNoDefault PNG
nodeIdNoNode id; default the first selected node
maxDimensionNoMax longest side in px (default 4096)
useAbsoluteBoundsNoExport the node's full bounds (ignore effects/clipping overflow, keep cropped text)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the return shape per format (image plus 'name (id) w×h' text line, SVG as markup text), the PDF limitation, and the automatic downscale rule tied to maxDimension. It omits any statement about permissions, side effects, or what happens when no node is selected beyond the 'first selected node' default.

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?

Four sentences, each carrying distinct information: purpose, default, per-format return behavior, and the PDF escape hatch plus scaling rule. The disqualifying case is placed before the scaling detail, so an agent that needs PDF learns it early.

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 six-parameter, all-optional tool with no output schema, the description covers returns, defaults, and the one unsupported format, which is close to sufficient. It leaves the 'file' default and useAbsoluteBounds semantics to the schema, which is reasonable given full coverage.

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 100%, so the baseline would be 3, but the description adds real meaning: nodeId's selection default, format-dependent return values (SVG markup, PDF non-inline), and the interaction where scale is auto-lowered to respect maxDimension. Only useAbsoluteBounds is left entirely to the schema.

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?

States a specific verb and resource ('Render a node as an image and return it inline') and immediately distinguishes itself from save_screenshots, which writes to disk. An agent can tell what this produces without opening the schema.

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?

Explicitly names the condition that disqualifies this tool ('PDF cannot be shown inline — use save_screenshots') and gives the alternative. It does not cover other sibling reads such as get_node or get_layout_tree, so the routing is only partially complete.

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