Skip to main content
Glama

figma_insert_component

Insert a real library component instance from a design system into a Figma frame. Provide component key, node ID, and file key to place navigation bars, buttons, or any published component while preserving library instance connections.

Instructions

Insert a library component instance into a Figma frame. Use this to insert any published component from your design system library — navigation bars, headers, footers, section titles, cards, buttons, badges, and so on. This inserts the real library instance — not a recreation. Provide componentKey (preferred, from a DS search result) OR nodeId (component node ID in the library file).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentKeyNoComponent key hash from a design system search result. Preferred over nodeId.
nodeIdNoComponent node ID in the library file. Only needed when componentKey is unknown.
fileKeyNoFigma file key of the design system library file.
parentNodeIdNoNode ID of the parent frame. Omit to place on current page.
xNo
yNo
widthNoResize instance to this width after insertion.
heightNoResize instance to this height after insertion.
Behavior4/5

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

Annotations are provided (readOnlyHint=false, destructiveHint=false, etc.). Beyond that, the description clarifies that it inserts a 'real library instance — not a recreation', which is a key behavioral trait. It does not mention any side effects on the library file or constraints like permissions, but the main behavior is well disclosed.

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

Conciseness5/5

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

Three sentences with no redundancy. The purpose is front-loaded, followed by example uses and parameter guidance. Every sentence adds value.

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?

With 8 parameters, no output schema, and moderate annotations, the description covers usage, parameter selection, and behavioral nuance. It doesn't describe what the tool returns (likely nothing), but without an output schema this is acceptable. Overall it provides enough context for correct invocation.

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 description coverage is 75% (6 of 8 parameters have descriptions). The description adds value by clarifying the role of componentKey vs nodeId, stating preference ordering, and explaining that parentNodeId is optional. However, x and y parameters lack descriptions in both schema and text, leaving a minor gap.

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 starts with 'Insert a library component instance into a Figma frame', a specific verb+resource statement. It lists concrete examples (navigation bars, headers, etc.) and explicitly contrasts with 'not a recreation', clearly distinguishing from related siblings like figma_replace_component or figma_create_rectangle.

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?

The description advises using componentKey over nodeId and mentions design system search results, but does not explicitly state when not to use this tool or direct to alternatives among the many sibling tools (e.g., figma_replace_component for swapping, figma_swap_main_component for main component changes). Guidance is implied but not thorough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/miapre/mimic-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server