extract_design_context
Extract colors, typography, spacing, layout, and component styles from an existing screen to maintain visual consistency across multiple screens.
Instructions
Extracts design DNA from an existing screen — colors, typography, spacing, layout patterns, and component styles. Use this to maintain visual consistency across multiple screens.
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_design_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screenId | Yes | The screen ID to extract from. | |
| projectId | Yes | The project ID. | |
| includeColors | No | Include color palette extraction. | |
| includeSpacing | No | Include spacing/layout analysis. | |
| includeComponents | No | Include component-level analysis. | |
| includeTypography | No | Include typography analysis. |