Skip to main content
Glama

Read a design

get_design
Read-only

Extracts a Figma frame or component’s layout, sizes, colors, typography, tokens, components, and overrides in a compact structure for reproducing it in code.

Instructions

The main tool: a compact, exact description of a frame/component (layout, sizes, colours, typography, tokens, components, overrides) for reproducing it in code. Output is breadth-first within a token budget; cut subtrees say how to fetch them.

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

Input Schema

NameRequiredDescriptionDefault
fileNoWhich open Figma file (name or key) when several are connected. Default: the most recently active.
depthNoMax levels to read below the target (default: all).
budgetNoApproximate output size in tokens (default 8000).
targetNoFigma URL, node id(s) like "12:34" (comma-separated), or omit for the current selection in Figma.
assets_dirNoAlso write the icons (SVG) and images to this folder; each layer then names its file in src: (saves a separate export_assets call).
componentsNoauto (default): repeated components printed once + per-instance overrides. inline: every instance expanded. names: instances as one line (when the codebase already has them).
screenshotNoAlso return a PNG of the target (saves a separate get_screenshot call).
current_colorNoWith assets_dir: monochrome SVG icons use currentColor (default false).
expand_vectorsNoDescribe the shapes inside icons/illustrations instead of one svg line (default false).
include_hiddenNoInclude hidden layers (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the burden and does add real behavior: output is breadth-first within a token budget, and truncated subtrees state how to fetch them. That tells the agent to expect partial results and how to continue, which is exactly the non-obvious context needed; only the default budget and depth behavior are left to the 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?

Two dense sentences with the core value proposition front-loaded ('a compact, exact description ... for reproducing it in code') followed by the output-behavior caveat. No filler, no repetition of the title.

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?

With ten parameters and no output schema, the description needs to characterize the return value, and it does - breadth-first structure, token budget, and truncation markers. It stops short of explaining the default target (current Figma selection) or the breadth-first traversal's practical consequences, which would fully close the gap.

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% with per-parameter descriptions, so the baseline is 3 and the description does not need to restate parameters. It adds only a light gloss on budget semantics ('breadth-first within a token budget'), leaving depth, components modes, and target formats entirely to the schema.

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 - a description of a frame/component - and enumerates exactly what is captured (layout, sizes, colours, typography, tokens, components, overrides) plus the intended use, reproducing it in code. The enumeration implicitly separates it from get_css/get_outline/get_tokens, but no sibling is named to make the distinction explicit.

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?

Calling it 'the main tool' and tying it to reproductions in code implies the default entry point, but there is no explicit statement of when to prefer get_css, get_outline, or get_tokens instead. The useful routing hints ('saves a separate export_assets call', 'saves a separate get_screenshot call') live in parameter descriptions rather than the tool description itself.

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