Insert a component instance
figma_create_instanceCreates a Figma component instance from a local component ID or published library key, optionally applying properties or variant values. Use it to place reusable UI elements into a frame, group, or page.
Instructions
Creates an instance of a local component (component_id; a component set uses its default variant) or a library component (component_key), optionally setting its properties/variant.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_create_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. | |
| index | No | ||
| parent_id | No | Parent frame/group/page id; defaults to the current page | |
| properties | No | e.g. {"Size":"Large","Label#12:0":"Buy"} | |
| component_id | No | ||
| component_key | No | Published component key (from figma_get_components) |