Skip to main content
Glama

reparent_nodes

Move one or more Figma nodes into a new parent such as a frame, group, section, page, or component, preserving position by default and reporting per-node results.

Instructions

Move nodes into another parent (frame, group, section, page, component...). index inserts at that z-position (0 = bottom; multiple nodes go in consecutively); default is on top. keepPosition (default true) preserves the absolute on-canvas position unless the new parent's auto layout controls it. Returns per-node results ({id, ok, ...} or {id, error}); one failing node does not abort the batch.

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>",
      "parentId": "<parentId>"
    },
    "name": "reparent_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
indexNo
nodeIdsYesFigma node ids, e.g. ['12:34']
parentIdYesNew parent node id (a page id moves to top level of that page)
keepPositionNoDefault true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so well: it discloses partial-failure semantics ('one failing node does not abort the batch') and the exact per-node return shapes. It does not mention permission requirements or what happens to the old parent, which keeps it short of 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?

Three tight sentences, each front-loaded with the key behavior, and no filler. The heavy parenthetical density (examples list, default notes) slightly slows scanning but every clause carries information.

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 mutation tool with no annotations and no output schema, the description covers insertion semantics, the position-preservation caveat, and return/error shape, which is what an agent needs to call it safely. Only the `file` parameter and any permission preconditions are left unaddressed.

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

Parameters5/5

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

Beyond an 80%-covered schema, the description adds real meaning: index is a z-position where 0 is bottom and multiple nodes are inserted consecutively; keepPosition preserves absolute on-canvas position but is overridden by the new parent's auto layout; a page id as parentId means top level. Those details are absent from the schema text.

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?

The description opens with a specific verb and resource: 'Move nodes into another parent', and enumerates valid parent kinds (frame, group, section, page, component). This distinguishes it from siblings like reorder_nodes (z-order within a parent) and group_nodes (creates a parent).

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

Usage Guidelines4/5

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

It gives concrete context for the optional knobs: index controls insertion z-position with a stated default of top, and keepPosition defaults to true. It does not explicitly route an agent away from reorder_nodes when the node stays in the same parent, so the when-not case is left implicit.

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