create_component
Convert an existing Figma node into a reusable component, or create an empty component when no node ID is provided.
Instructions
Convert an existing node into a component (or create an empty one when nodeId is omitted).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| name | No | ||
| nodeId | No |