figma_import_component_by_key
Import a published Figma component by its library key and create an instance in the current design. For team library components only; use clone for external libraries.
Instructions
Import a published component by its library key and create an instance. Get keys from figma_get_components with source='file'. IMPORTANT: This only works for components published within the same Figma team library. For external/linked design system libraries, use figma_clone_node to clone an existing instance from the canvas instead. Run figma_get_components with source='library' first to check what's available.
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": {
"componentKey": "<componentKey>"
},
"name": "figma_import_component_by_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | ||
| parentId | No | ||
| componentKey | Yes | The component key (also accepted as 'key' in batch mode) |