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
| Name | Required | Description | Default |
|---|---|---|---|
| background | No | The background color of the button as RGBA. | |
| buttons | No | An array of button creation entries for batch creation. | |
| cornerRadius | No | The corner radius for the button. | |
| fontSize | No | The font size for the button text. | |
| fontWeight | No | The font weight for the button text. | |
| height | No | The height of the button in pixels. | |
| name | No | The name to assign to the button node. | |
| parentId | No | The parent node ID to attach the button to. | |
| text | No | The text label for the button. | |
| textColor | No | The text color of the button as RGBA. | |
| width | No | The width of the button in pixels. | |
| x | No | The X coordinate for the button on the Figma canvas. | |
| y | No | The Y coordinate for the button on the Figma canvas. |