Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_swap_component

figma_swap_component

Swap a Figma instance to a different component by specifying the target component ID, updating designs without manual recreation.

Instructions

Swap an instance to another component.

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": {
      "componentId": "<componentId>"
    },
    "name": "figma_swap_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNo
instanceIdNo
componentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.2/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 behavioral burden and does almost none of it: it says nothing about required permissions, whether instance overrides are preserved after the swap, whether the operation is reversible, or what happens to existing property values.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with no wasted words, but it is under-specified rather than concise – length was saved at the cost of the information an agent needs to invoke the tool.

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 mutation tool with no annotations, no output schema, and three undocumented parameters, this definition is far short of complete; the agent cannot determine argument selection or side effects from it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, and the single sentence names none of them; the critical ambiguity of when to pass nodeId versus instanceId (both optional, versus the required componentId) is left completely unresolved.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb ("Swap") and resource ("an instance to another component") make the basic operation understandable, but nothing distinguishes it from nearby tools such as figma_detach_instance or the component-creation siblings.

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?

The description gives no when-to-use guidance, prerequisites, or exclusions; an agent must infer entirely from the operation name whether swapping is the right action versus detaching or cloning.

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