create_component
Transform a shape into a reusable component in Penpot to maintain design consistency and streamline updates.
Instructions
Create a component from a shape
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": {
"fileId": "<fileId>",
"pageId": "<pageId>",
"shapeId": "<shapeId>"
},
"name": "create_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Component name | |
| fileId | Yes | File ID | |
| pageId | Yes | Page ID | |
| shapeId | Yes | Shape ID to convert to component |