Skip to main content
Glama

Get Screenshot

get_screenshot
Read-only

Capture a PNG screenshot of a Figma node or the current selection, with an optional max dimension, and return a local URL and file path plus inline base64 when requested.

Instructions

Generate a screenshot for a given node or the currently selected node in Figma. maxDimension (default 1024) caps the longer edge of the PNG (up to 2x the node size). The response gives a local URL and file path plus width/height and original_width/original_height. Set enableBase64Response to also get the image inline.

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
nodeIdNoThe ID of the node, eg. "123:456" or "123-456" (instance ids like "I1:2;3:4" work too). Omit it to use the current selection in Figma.
fileKeyNoThe key of the Figma file. Accepted for compatibility; the file open in Figma Desktop is always used.
contentsOnlyNoRender the node in isolation, without overlapping content.
maxDimensionNoLongest edge of the PNG in pixels (default 1024, at most 4096).
enableBase64ResponseNoAlso include the PNG inline as base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.8.1
    • changedInput schema / properties / maxDimension / description
      Previous value: -"Longest edge of the PNG in pixels (default 1024)."New value: +"Longest edge of the PNG in pixels (default 1024, at most 4096)."
    • changedInput schema / properties / maxDimension / maximum
      Previous value: -65536New value: +4096
  2. First observedv1.5.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description goes beyond them by disclosing the return payload (local URL, file path, width/height, original_width/original_height) and the maxDimension cap behavior including the 2x node-size bound — valuable since there is no output schema.

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?

Three sentences, front-loaded with purpose, then the key sizing parameter, then the response shape. No filler and no restatement of the title or schema-only details.

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

Completeness5/5

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

All five parameters are optional and fully schema-documented, and the description fills the remaining gap — the return value — since no output schema exists. Nothing an agent needs to call this correctly (default node, size cap, response format) is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that maxDimension caps the longer edge of the PNG and can go up to 2x the node size, and that enableBase64Response adds an inline image rather than replacing the file output.

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 ("Generate a screenshot for a given node or the currently selected node in Figma") and the default target when no node is given. It is clear on its own, but it never names or contrasts with plausible siblings like download_assets or get_design_context, so the agent must infer the boundary.

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 context is implied by "for a given node or the currently selected node," which tells the agent the nodeId is optional and the selection is the fallback. There is no explicit when-to-use/when-not guidance and no mention of alternatives such as download_assets for bulk asset retrieval.

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