convert_to_component
Turns an existing node, usually a frame, into a Figma component and assigns it a new ID. Use it to promote a design element into a reusable component.
Instructions
Turn an existing node (usually a frame) into a COMPONENT. The component gets a new ID.
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": {
"nodeId": "<nodeId>"
},
"name": "convert_to_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ID of the node |