Skip to main content
Glama

create_button

Generate customizable buttons in Figma with specified coordinates, size, text, colors, font, corner radius, and parent node. Ideal for batch creation and precise design control.

Instructions

Creates a complete button with background and text in Figma at the specified coordinates. You can customize size, text, colors, font, corner radius, name, and parent node.

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the created button's frame, background, and text node IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backgroundNoThe background color of the button as RGBA.
buttonsNoAn array of button creation entries for batch creation.
cornerRadiusNoThe corner radius for the button.
fontSizeNoThe font size for the button text.
fontWeightNoThe font weight for the button text.
heightNoThe height of the button in pixels.
nameNoThe name to assign to the button node.
parentIdNoThe parent node ID to attach the button to.
textNoThe text label for the button.
textColorNoThe text color of the button as RGBA.
widthNoThe width of the button in pixels.
xNoThe X coordinate for the button on the Figma canvas.
yNoThe Y coordinate for the button on the Figma canvas.

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/amalinakurniasari/conduit'

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