MCP Libraries
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

ParameterTypeRequiredDescription
componentNamestringYesComponent 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

On this page