create_component
Create a reusable component from a selected node or a new frame, turning design elements into shareable UI building blocks.
Instructions
Create a reusable component from the current selection or a new frame.
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": {
"name": "<name>"
},
"name": "create_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name | |
| width | No | Width | |
| height | No | Height | |
| parentId | No | Parent node ID | |
| fromNodeId | No | Node ID to convert to component | |
| description | No | Component description |