create_component_instance
Create a Figma component instance at specified coordinates using a local component ID or published component key, optionally placing it inside a parent node.
Instructions
Create an instance of a component: a local one by componentId, a published one by componentKey
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 | A local component's ID (id from get_local_components) | |
| componentKey | No | A published component's key (key from get_local_components, or a library's) |