Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

create_text

Creates a Figma text node at specified coordinates with text, font, color, alignment, and parent options, defaulting to Inter unless a font family is set.

Instructions

Create a text node, in Inter unless fontFamily sets the font

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": {
      "x": "<x>",
      "y": "<y>",
      "text": "<text>"
    },
    "name": "create_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX position
yYesY position
nameNoSemantic layer name for the text node
textYesText content
widthNoFixed width: the text wraps and its height follows
fontSizeNoFont size (default: 14)
parentIdNoOptional parent node ID to append the text to
fontColorNoFont color in RGBA format
fontStyleNoThe family's own style name, e.g. "Regular", "Semibold", "Bold" for SF Pro
fontFamilyNoAny font installed for Figma, e.g. "SF Pro", "SF Pro Rounded", "New York"
fontWeightNoFont weight, e.g. 400 Regular, 700 Bold (default 400); ignored when fontStyle is set
lineHeightNoLine height in pixels
letterSpacingNoLetter spacing in pixels
textAlignVerticalNo
textAlignHorizontalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/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 burden, and it discloses only one trait: the default Inter font unless fontFamily is provided. It omits what happens when parentId is absent (which page/parent receives the node), what is returned (node ID vs node object), and any failure modes such as unavailable fonts.

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 with no filler. The phrasing "in Inter unless fontFamily sets the font" is slightly awkward but efficiently conveys the default/override relationship.

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

Completeness2/5

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

For a 15-parameter mutation tool with no annotations and no output schema, the definition is far too thin. An agent cannot learn placement behavior (parentId vs current page), the expected return value, or font-resolution constraints from this single sentence.

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 87%, so the baseline is 3. The description does add one genuinely new fact: the default font family is Inter, overridden by fontFamily — information the schema does not state. Beyond that it adds nothing about the 14 other parameters.

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?

States a specific verb and resource ("Create a text node") and adds a default-behavior detail about the font family. It is clear what gets created, though it does not contrast itself with sibling creators like create_frame or create_rectangle beyond the obvious text-vs-shape distinction.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites (e.g. needing an open Figma document or a loaded font), and no indication of how this relates to set_text_content or create_frame for adding text. The agent must infer everything from the name.

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