import_component_by_key
Import a component by its key from a library and place it as an instance at a specified position on the current page.
Instructions
Import a component from a library by its key and create an instance on the current page
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": {
"key": "<key>"
},
"name": "import_component_by_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position for the instance | |
| y | No | Y position for the instance | |
| key | Yes | The component key (from get_library_components) | |
| parentId | No | Parent node ID to append the instance into |