Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_get_component_for_development

Fetch component data optimized for UI implementation, including a rendered image and filtered specs for layout, typography, and visual properties. Use it for design-to-code and code generation.

Instructions

Get component data optimized for UI implementation, includes rendered image + filtered implementation context (layout, typography, visual properties). Use when user asks to: 'build this component', 'implement this in React/Vue', 'generate code for', or needs both visual reference and technical specs. Automatically includes 2x scale image unless includeImage=false. Best for: UI development, code generation, design-to-code workflows. For just metadata, use figma_get_component; for just image, use figma_get_component_image.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "nodeId": "<nodeId>"
    },
    "name": "figma_get_component_for_development"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesComponent node ID to get data for (e.g., '695:313')
fileUrlNoFigma file URL (e.g., https://figma.com/design/abc123). REQUIRED unless figma_navigate was already called.
includeImageNoInclude rendered image for visual reference (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavior: the image is auto-included at 2x scale unless includeImage=false, and the implementation context is 'filtered' rather than raw. It stops short of stating read-only semantics, what happens if nodeId is not a component, or error behavior, which matters for an undocumented read path.

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?

Front-loaded with purpose and payload contents before usage triggers and alternatives, which is the right order. The 'Best for: UI development, code generation, design-to-code workflows' clause largely restates the preceding trigger examples and could be dropped without losing information.

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 3-parameter tool with no annotations and no output schema, the description covers input behavior (image toggle, scale) and sketches the return composition (image + filtered layout/typography/visual properties). A concrete sense of the shape of the 'filtered implementation context' object is the main omission, but the essentials for correct invocation are present.

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 100%, so baseline is 3, but the description adds meaning the schema does not: includeImage=false removes the rendered image entirely (not just skips encoding), and the 2x scale applies to that image. The practical consequence of the fileUrl prerequisite ('unless figma_navigate was already called') is left to the schema.

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?

Uses a specific verb+resource ('Get component data optimized for UI implementation') and immediately enumerates what the payload contains (rendered image plus filtered layout/typography/visual properties). It explicitly distinguishes itself from the two nearest siblings, figma_get_component and figma_get_component_image, so an agent can pick correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives literal user-phrase triggers ('build this component', 'implement this in React/Vue', 'generate code for') plus a capability condition (needs both visual reference and technical specs). It also states the exclusion conditions that route to alternatives: just metadata -> figma_get_component, just image -> figma_get_component_image.

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

Deploy Server

Other Tools