create_component_instance
Create a Figma component instance. Specify componentId for local components or componentKey for published library components, and set x, y, and optional parentId.
Instructions
Create an instance of a component in Figma. For LOCAL components (from get_local_components), use componentId with the id field. For published LIBRARY components, use componentKey with the publishedKey field.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": "<x>",
"y": "<y>"
},
"name": "create_component_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| parentId | No | Optional parent node ID to place the instance into | |
| componentId | No | ID of a local component (use the id field from get_local_components result). Use this for unpublished/local components. | |
| componentKey | No | Key of a published library component to instantiate (use the publishedKey field from get_local_components result). Only works for published components. |