import_component_by_key
Import a library component into the current Figma file using its componentKey, and optionally rename the main component.
Instructions
Import a library component into the current file using its componentKey. Optionally rename the imported main component.
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": "import_component_by_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the imported main component. | |
| componentKey | Yes |