Skip to main content
Glama

create_frame

Destructive

Create structured frames in Figma with auto-layout, spacing, and sizing controls. Add containers to pages or nested parent nodes to automate design workflows and organize content systematically.

Instructions

Create a new frame on the current page or inside a parent node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
counterAxisAlignItemsNoCross-axis alignment: MIN, CENTER, MAX, or BASELINE
counterAxisSizingModeNoCross-axis sizing: FIXED or AUTO (hug)
counterAxisSpacingNoGap between wrapped rows/columns (only when layoutWrap is WRAP)
fillColorNoFill color as hex e.g. #FFFFFF
heightNoHeight in pixels (default 100)
itemSpacingNoAuto-layout gap between children
layoutModeNoAuto-layout direction: HORIZONTAL, VERTICAL, or NONE
layoutWrapNoWrap behaviour: NO_WRAP or WRAP
nameNoFrame name
paddingBottomNoAuto-layout bottom padding
paddingLeftNoAuto-layout left padding
paddingRightNoAuto-layout right padding
paddingTopNoAuto-layout top padding
parentIdNoParent node ID in colon format. Defaults to current page.
primaryAxisAlignItemsNoMain-axis alignment: MIN, CENTER, MAX, or SPACE_BETWEEN
primaryAxisSizingModeNoMain-axis sizing: FIXED or AUTO (hug)
widthNoWidth in pixels (default 100)
xNoX position (default 0)
yNoY position (default 0)
Behavior3/5

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

Annotations indicate destructive=true and idempotent=false, which align with 'Create a new frame'. The description adds value by specifying placement behavior (current page vs parent node) not covered by annotations. However, it fails to disclose what the tool returns (e.g., node ID), error conditions, or side effects given the lack of output schema.

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?

Single sentence of 11 words is appropriately front-loaded with the action. No redundant or wasted text. However, given the high complexity (19 parameters, destructive mutation), the extreme brevity may underserve the agent's need for context, preventing a perfect score.

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 destructive creation tool with 19 parameters and no output schema, the description is insufficient. It omits critical information about return values (what identifies the created frame?), error handling, and whether the created frame has default auto-layout or sizing behavior. Relies too heavily on schema alone.

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?

With 100% schema description coverage across 19 parameters, the baseline is met. The description mentions 'parent node' which loosely references the parentId parameter, but adds no additional semantic context about coordinate systems, auto-layout behavior, or parameter interactions beyond what the schema provides.

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?

Clear verb 'Create' and resource 'frame' with scope 'on the current page or inside a parent node'. Accurately describes the hierarchical placement options. However, it does not explicitly distinguish from similar sibling tools like create_component that may also create frame-like containers.

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?

Implies usage context through mention of 'current page' and 'parent node', hinting at the parentId parameter behavior. However, lacks explicit guidance on when to use this versus create_component or group_nodes, and omits prerequisites like requiring valid parentId if specified.

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/vkhanhqui/figma-mcp-go'

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