Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_get_design_system_kit

Extracts design tokens, components, and styles from Figma in one call to prevent context overflow. Use it to get visual specs and resolved values for pixel-accurate AI code generation.

Instructions

PREFERRED TOOL for design system extraction — replaces separate figma_get_styles, figma_get_variables, and figma_get_component calls. Returns tokens, components, and styles in a single optimized response with adaptive compression for large systems. Includes component visual specs (exact colors, padding, typography, layout), rendered screenshots, token values per mode (light/dark), and resolved style values. Use this instead of calling individual tools to avoid context window overflow. Ideal for AI code generation — use visualSpec for pixel-accurate reproduction.

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

Input Schema

NameRequiredDescriptionDefault
formatNo'full' returns complete data with visual specs and resolved values. 'summary' strips variant-level visual specs (medium payload). 'compact' returns only names, types, and property definitions (smallest payload, best for large design systems). Auto-compresses if response exceeds safe size regardless of format setting.full
fileKeyNoFigma file key. If omitted, extracted from the current browser URL.
includeNoWhich sections to include. Defaults to all.
componentIdsNoOptional list of specific component node IDs to include. If omitted, all published components are returned.
includeImagesNoInclude image URLs for components (adds latency). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and largely meets it: it discloses adaptive/automatic compression when responses exceed a safe size, relative payload sizes per format, that images add latency, and that fileKey falls back to the current browser URL. Gaps remain on permissions/auth requirements and whether a partially sliced response is signaled to the caller, but the behavioral profile is unusually well disclosed.

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 the routing claim ('PREFERRED TOOL...'), then capabilities, then use case — a sensible order. Some marketing-flavored redundancy ('single optimized response', 'Ideal for AI code generation') could be trimmed, but no sentence is 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?

There is no output schema, so the description must sketch the return shape, and it does (tokens, components, styles, per-mode token values, resolved styles, visual specs). All five parameters are optional with a safe default path (browser URL, all sections), so an agent can call it with no arguments; only the concrete response envelope and truncation signaling are left unspecified.

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 description coverage is 100% and the format enum is already documented in detail, so the description adds little parameter meaning beyond what the schema provides. It mentions 'rendered screenshots' as if always included without tying that to includeImages (default false), which mildly muddies rather than clarifies a parameter.

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?

States a specific verb+resource ('design system extraction') and immediately names the three sibling tools it consolidates (figma_get_styles, figma_get_variables, figma_get_component). It also enumerates the returned artifacts (tokens, components, styles, visual specs), so an agent can distinguish it from siblings 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?

Explicit routing guidance: 'PREFERRED TOOL', 'Use this instead of calling individual tools to avoid context window overflow', plus per-format guidance on when to pick summary/compact for large systems. It does not state when a narrower sibling (e.g. figma_get_component_details or figma_get_design_system_summary) would still be preferable, so exclusions are only partial.

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