Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_execute

Execute batches of validated Figma write actions via the plugin bridge for text, layout, variables, pages, gradients, and images. Preview actions, stop on first error, or roll back failed batches.

Instructions

PREFERRED TOOL for ALL Figma write operations. Execute a batch of validated actions via plugin bridge — 30-60x faster than use_figma. Do NOT use use_figma for writes; use this tool instead. Supports 43 action types including text creation, layout, variables, pages, gradients, images, and text properties. If plugin not connected, returns fallback JavaScript for use_figma. Call figma_plugin_status to check connection.

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": {
      "actions": "<actions>"
    },
    "name": "figma_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview without executing
actionsYesArray of validated Figma actions (see figma://actions resource for schema reference)
timeoutMsNoTimeout in ms
stopOnErrorNoStop batch on first error
rollbackOnErrorNoUndo all applied actions if any fails

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does well: it discloses the plugin-bridge dependency, the performance claim (30-60x faster), the fallback that returns JavaScript, and the 43 supported action types. It stops short of saying whether writes are destructive or irreversible and what a partial failure does beyond what the schema's rollbackOnError implies, so not a full 5.

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 decision in the first sentence, then supporting facts in descending order of importance. Dense but every clause carries usable information; slightly crammed with the action-type catalogue, which could be trimmed without loss.

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

Completeness3/5

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

For a batch mutation tool with no output schema, the description explains the fallback return (JavaScript) but not the normal success/error response shape or how per-action results are reported. Combined with the 500-action cap and stopOnError semantics living only in the schema, an agent has enough to call it but not enough to interpret results confidently.

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%, so all five parameters (actions, dryRun, timeoutMs, stopOnError, rollbackOnError) are already documented in structured form. The description adds only the framing of 'a batch of validated actions' and points to the figma://actions resource, which is a useful pointer but no new per-parameter semantics.

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 and resource ('Execute a batch of validated actions via plugin bridge') and immediately scopes it as the write path, explicitly contrasting with use_figma. An agent can distinguish this from read-only siblings like figma_get_tree or figma_audit without opening a 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 explicit when-to-use ('ALL Figma write operations'), an explicit prohibition ('Do NOT use use_figma for writes'), and a prerequisite step ('Call figma_plugin_status to check connection'). It also describes the degraded path when the plugin isn't connected, so routing decisions are fully determined.

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