extract_components
Extract reusable UI component patterns (buttons, cards, forms, inputs) from a screen with their styles and variants. Specify output format and component types to get code or JSON.
Instructions
Extracts reusable UI component patterns (buttons, cards, forms, inputs) from a screen with their styles and variants.
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": {
"projectId": "<projectId>",
"screenId": "<screenId>"
},
"name": "extract_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screenId | Yes | The screen ID. | |
| projectId | Yes | The project ID. | |
| outputFormat | No | Output format. | json |
| componentTypes | No | Types of components to extract. |