Skip to main content
Glama

duplicate_nodes

Creates multiple copies of selected Figma nodes with cumulative X/Y offsets and optional parent placement, returning clone IDs for each source node.

Instructions

Duplicate nodes. Each copy is offset by (offsetX, offsetY) from the previous one; count makes N copies with cumulative offset (copy k sits at original + k*offset). Copies stay in the original's parent (just above it) unless parentId is given, in which case they are appended there at the same relative x/y (+offset). Positions are ignored inside auto-layout parents. Returns per source node {id, clones:[...]}.

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": {
      "nodeIds": "<nodeIds>"
    },
    "name": "duplicate_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
countNoCopies per node, default 1
nodeIdsYesFigma node ids, e.g. ['12:34']
offsetXNoDefault 0
offsetYNoDefault 0
parentIdNoPlace the copies in this parent instead

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the cumulative offset formula (copy k at original + k*offset), where copies land by default (in the original's parent, just above it), what changes when `parentId` is given, the auto-layout exception, and the return shape {id, clones:[...]}. It is silent on whether styles/components/overrides are preserved, whether the originals are modified, and on permission or failure behavior, which keeps it below a 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?

The purpose is front-loaded in three words, and every subsequent clause carries operational information: offset math, default parent, parentId override, auto-layout caveat, return shape. It is dense with parenthetical asides and backticked names, which slightly impairs scanability but includes no 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?

For a 6-parameter mutation tool with no annotations and no output schema, the description is nearly self-sufficient: it covers placement, offset arithmetic, an important edge case, and the response structure. Residual gaps are the missing guidance on when duplication is the right call versus an alternative and any note about content fidelity (styles, overrides) in the copies.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: it explains that offsets are cumulative per copy rather than a single displacement, and that `parentId` switches placement from sibling-of-original to appended-in-parent with offset applied to relative x/y. Only `file` remains purely schema-documented.

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?

The description opens with a specific verb+resource pair ('Duplicate nodes') and immediately qualifies it with offset/count/parent semantics, which makes the operation unmistakable. It never explicitly contrasts itself with siblings such as create_shape or reparent_nodes, so it falls short of full sibling differentiation.

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

Usage Guidelines3/5

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

Usage is only implied: the text explains what happens when `parentId` is supplied and that positions are ignored in auto-layout parents, which helps an agent decide whether those options apply. There is no explicit 'use this when…' guidance, no mention of when to prefer a creation tool over duplication, and no prerequisites stated.

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