Skip to main content
Glama

save_screenshots

Exports Figma nodes to PNG, JPG, SVG, or PDF files on disk, enabling batch exports by node ID or target path and returning file metadata instead of image data.

Instructions

Export nodes to files on disk (PNG, JPG, SVG or PDF). Either pass items [{nodeId, path, format?, scale?}] or the shortcut nodeIds + dir (files are named from the sanitized node names, with the id appended on collisions). Paths may be absolute or relative to the server's working directory; parent directories are created. Returns metadata only (path, bytes, pixel size) — never the image data. Per-item errors don't abort the batch.

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": "save_screenshots"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNoOutput directory for the nodeIds shortcut
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
itemsNo
scaleNoDefault scale for all items (default 1)
formatNoDefault format for all items (default PNG)
nodeIdsNoShortcut: export these nodes into `dir`
maxDimensionNoMax longest side in px for PNG/JPG (default 4096)
useAbsoluteBoundsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses that only metadata is returned (never image bytes), that parent directories are created, that filenames are sanitized with id suffixes on collision, and that per-item errors do not abort the batch. The main undisclosed behavior is whether existing files are overwritten and whether any auth or write permissions are required.

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?

Five dense sentences, front-loaded with the core action and formats before the invocation modes and behavioral caveats. Every sentence contributes a distinct fact with no restatement of the tool name or filler.

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 an eight-parameter, no-annotation, no-output-schema tool, the description covers the essentials: return shape, path resolution, directory creation, and batch error semantics. It falls short on overwrite behavior and on the `useAbsoluteBounds` flag, which an agent would have to 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?

Adds real meaning beyond the 75%-covered schema: it explains the relationship between `items` and the `nodeIds`/`dir` shortcut, the collision-naming rule, and that paths may be absolute or relative to the server working directory. It says nothing about `file`, `maxDimension`, or `useAbsoluteBounds`, the last of which is undocumented in both schema and description.

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 ('Export nodes to files on disk') plus the supported formats (PNG, JPG, SVG, PDF), which separates it from document-mutating siblings like create_image or create_svg. It stops short of explicitly naming an alternative tool, so the agent must infer that distinction from 'files on disk' and 'returns metadata only'.

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?

Gives concrete invocation guidance by laying out two mutually exclusive calling modes: a structured `items` list versus the `nodeIds` + `dir` shortcut. However, it never says when this tool is preferable to a sibling such as create_svg, nor does it state any prerequisites, so the when-to-use decision is only implied.

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