mcp-design-system-extractorTools Reference
get_component_variants
Get all story variants for a component
get_component_variants
Gets all story variants/states for a specific component.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
componentName | string | Yes | Component name (case-sensitive) |
Example
{
"tool": "get_component_variants",
"arguments": {
"componentName": "Button"
}
}Response
Returns all stories for the component with:
- Story ID
- Story name
- Parameters
Notes
- Component name must match exactly as shown in
list_components - Case-sensitive matching