Skip to main content
Glama

Create from spec

figma_create_from_spec
Idempotent

Build an entire Figma section from one JSON spec: frames with auto-layout, text, shapes, icons, images, and component instances. Each call is a single undo step.

Instructions

Build a whole SECTION in one call (one undo step): a header, hero, card, grid of cards or footer — frames with auto-layout, text, shapes (rectangle, ellipse, polygon, star, line, vector path), SVG icons, images by URL, components and instances. To build anything new: a wrapper frame, then one call per section into it by parentId; after each, figma_check_layout and one figma_export_node, then targeted fixes. Not a whole page in one payload: a section at a time keeps every step checkable. The full spec grammar: figma_get_guide { topic: "spec" }. Minimal shape: { "type": "frame", "name": "Card", "layout": "vertical", "gap": 16, "padding": 24, "children": [ { "type": "text", "content": "Title", "fontSize": 20 } ] }. A field a type does not take is refused, never dropped. A mid-way failure does not roll back: created[] and failedAt say what exists. Supply your own idempotencyKey for a large spec. An array of roots (a slide's content) needs parentId or pageId. Editors: Design; unverified: FigJam, Slides.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specYesThe node tree to build, as a JSON object serialised to a string (the tool description gives its grammar), or a JSON array of 1–50 such roots when parentId or pageId is given. Serialising it keeps the schema portable across providers — see docs/reference/tools.md.
pageIdNoThe page to build on, at its top level, when no parentId is given. Not with parentId.
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
parentIdNoWhere to attach it: a frame, section, slide or page. Defaults to the current page (in Slides: the focused slide).
idempotencyKeyNoCaller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), but the description adds substantial non-structural behavior: unknown fields are 'refused, never dropped'; a mid-way failure does NOT roll back and reports created[]/failedAt; idempotencyKey is needed for safe retry on large specs; and editor support is scoped (Design verified; FigJam/Slides unverified). This is far beyond what annotations convey.

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?

Dense but front-loaded: the capability statement comes first, then workflow, then grammar pointer, then the minimal shape, then failure/idempotency semantics, then editor scope. Every sentence carries operational value, though the grammar pointer plus inline example is slightly redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex single-call section builder with no output schema, this is complete: it gives the grammar source, a worked minimal example, the multi-call workflow, failure semantics, retry guidance, parent/page placement rules, and editor support. An agent could invoke it correctly without opening other docs.

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 each of the 5 params has a schema description, so the baseline is 3. The description does add value by giving a minimal shape example, stating that an array of roots needs parentId or pageId, and explaining why idempotencyKey matters — but the core grammar is delegated to figma_get_guide rather than fully specified here.

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 (build a whole section in one call) and enumerates exactly what it can produce — header, hero, card, grid, footer — plus the node types it supports. This clearly distinguishes it from the granular siblings like figma_create_frame, figma_create_text, figma_create_rectangle that build single nodes.

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?

Explicit when-to-use workflow: 'a wrapper frame, then one call per section into it by parentId; after each, figma_check_layout and one figma_export_node, then targeted fixes.' It also states the alternative boundary — 'Not a whole page in one payload: a section at a time' — and points to figma_get_guide for the grammar, routing the agent precisely.

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