Skip to main content
Glama
figma-bridge

figma-bridge

by Seuketchi

figma_read

Reads a Figma frame or node as structured design data—layout, styles, text, variables, and component props—for building it in code, with an optional screenshot.

Instructions

Read a frame or node as design data for building it in code: the node tree with boxes relative to the parent, auto layout (direction, gap, padding, alignment, sizing), fills, strokes, radius, effects, text with font, weight, size, line height, tracking and colour (runs when mixed), component and variant props, and bound variables and styles by name. Also a summary of the colours, fonts, variables and styles used. With no node_id it reads the selection, else the first top-level node. Set screenshot to also see it.

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

Input Schema

NameRequiredDescriptionDefault
depthNolevels to descend, default 12
scaleNoscreenshot scale, default 1
node_idNo
max_nodesNodefault 1500
screenshotNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. "Read" plus the absence of any mutation language establishes a safe, non-destructive operation, and the default-selection fallback is genuinely useful context. It does not disclose what happens on truncation (max_nodes), errors for invalid node_ids, or any rate/permission constraints, leaving meaningful gaps for a tool that may return a large tree.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded with the purpose and the returned fields, and every clause carries information an agent needs to predict the output shape. The middle enumeration is dense and runs long, but it is high-value and not padded with filler; the invocation rule and screenshot note are placed at the end for a natural read order.

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, no-output-schema read tool, the description effectively documents the return payload (node tree fields plus a color/font/variable/style summary) and the default targeting behavior. The main missing piece is truncation behavior around max_nodes and failure modes, but overall the agent has enough to call the tool correctly.

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%: depth, scale, and max_nodes already have inline descriptions, while node_id and screenshot do not. The description compensates precisely where the schema is silent, explaining node_id's fallback behavior (selection, then first top-level node) and that screenshot adds a visual capture alongside the data. That is a genuine semantic addition rather than a restatement.

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?

"Read a frame or node as design data for building it in code" names a specific verb and resource, and the following clause enumerates exactly what is returned (node tree, auto layout, fills, strokes, effects, text runs, component props, bound variables). It even carves out the boundary with figma_screenshot by noting "Set screenshot to also see it." An agent can distinguish this from the sibling tools 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?

It gives a clear selection rule: "With no node_id it reads the selection, else the first top-level node," which tells the agent exactly how to invoke it in the default case. It also hints at the screenshot alternative. However, it never states when to prefer figma_screenshot or figma_comments instead, so there are no explicit exclusions or alternatives beyond the inline flag.

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