generate_component_states
Generate a complete component state sheet for all interaction states: Default, Hover, Pressed, Focused, Disabled, Skeleton Loading. Provide component name and parent ID to produce the matrix.
Instructions
Generates a complete component interaction state sheet (Default, Hover, Pressed, Focused, Disabled, Skeleton Loading).
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": {
"componentName": "<componentName>",
"targetParentId": "<targetParentId>"
},
"name": "generate_component_states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional target file ID. | |
| componentName | Yes | Name of the component (e.g. "Primary Button", "Text Field", "Toggle Card"). | |
| targetParentId | Yes | Parent artboard or container ID to receive the state matrix. |