Skip to main content
Glama
FigeloMCP
by mmonzera

get_design_context

Retrieve design-to-code context for a Figma node or current selection, including layout, styles, variables, and a rendered PNG screenshot.

Instructions

Get full design-to-code context (deep node tree, computed layout, fills, strokes, typography, effects, bound variables, color/font summary, plus a visual PNG screenshot) for a nodeId or current selection.

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

Input Schema

NameRequiredDescriptionDefault
nodeIdNoTarget node ID (defaults to first selected node)
channelNoOptional Figma document channel, fileKey, or documentName when multiple Figma files are open
maxDepthNoTree depth (default 4)
screenshotScaleNoScreenshot scale (default 1)
includeScreenshotNoAttach rendered PNG screenshot (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose that a rendered PNG screenshot is attached (a costly, non-trivial side effect of rendering), but it says nothing about output size, latency, or the fact that the deep tree plus screenshot can be large; read-only-ness is only implied by the verb 'Get'.

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?

A single front-loaded sentence opens with the verb and target, then packs the return contents into one parenthetical list. It is efficient with no filler, though the dense enumeration is slightly harder to scan than a short bulleted breakdown would be.

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 no output schema, the description does the necessary work by enumerating exactly what the response contains, and the schema covers all input semantics and defaults. What is missing is scale/format context (how large the tree can be, screenshot encoding), which matters for a tool that defaults to attaching a rendered image.

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% and all five parameters, including defaults (maxDepth 4, screenshotScale 1, includeScreenshot true), are documented in the schema itself. The description only restates the 'nodeId or current selection' targeting rule, adding no syntax, ranges, or format detail beyond the structured fields.

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?

The description uses a specific verb ('Get') and a well-defined resource ('design-to-code context') and enumerates the exact payload: node tree, computed layout, fills, strokes, typography, effects, bound variables, color/font summary, and a PNG screenshot. It is unambiguous what the tool returns, though it never names a sibling (e.g. get_node or get_screenshot) to contrast against, so the differentiation is only implicit.

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 is only implied: it states the tool works 'for a nodeId or current selection,' which tells an agent the default targeting behavior. There is no explicit when-to-use versus get_node, get_screenshot, or audit_frame, and no when-not guidance, so an agent must infer that this is the heavyweight aggregate call.

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