Skip to main content
Glama

ungroup_node

Ungroups selected groups or unwraps frames/sections, moving children to the parent at the same absolute position and z-order and deleting the container; frame fills, strokes, and effects are lost.

Instructions

Ungroup groups, or unwrap frames/sections: children move to the container's parent at the same absolute position and z-order, and the container is deleted (a frame's own fill/stroke/effects are lost). Returns per node {id, children:[new child ids], parentId}.

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": "ungroup_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nodeIdsYesFigma node ids, e.g. ['12:34']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 burden and does well: it discloses that the container is deleted, that a frame's own fill/stroke/effects are destroyed, and that children keep absolute position and z-order. It stops short of permission requirements, whether the operation is undoable, or batch failure behavior.

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?

Effectively one dense sentence plus a return note, with the core action front-loaded. The parenthetical about lost frame styling and the inline return object are slightly compressed but each clause carries real 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?

A destructive structural mutation with no annotations and no output schema, so the description must explain consequences and returns — and it does both. Only minor gaps remain (error/partial-failure behavior, undo semantics) for a tool of this complexity.

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 both parameters are already documented at baseline. The description adds return-shape information (per node {id, children, parentId}) but nothing about nodeIds semantics, ordering, or file resolution beyond what the schema states.

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 ("Ungroup groups, or unwrap frames/sections") and immediately describes the exact structural consequence — children reparent to the container's parent at same absolute position and z-order. That distinguishes it clearly from siblings like delete_nodes or combine_as_variants.

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 implied by the mechanics: an agent can infer this is the tool for flattening a group/frame rather than removing its contents. However, it never explicitly says when to prefer this over delete_nodes, or when unwrapping a frame is inadvisable versus just editing it, and no prerequisites are stated.

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