list_components
Lists all UI components in a design system or Storybook with names, categories, and variant counts, plus category filtering and pagination to explore large component libraries.
Instructions
List all UI components available in your design system/Storybook. Returns components like modals, dialogs, buttons, forms, cards, etc. with their names, categories, and variant count. Use this to explore what components are available for building UI features. Use category="all" or omit category parameter to list all components. Supports pagination to handle large component libraries.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based). Default is 1. | |
| compact | No | If true (default), returns compact format with only id, name, title, and variantCount. If false, returns full component data including all stories. | |
| category | No | Filter components by category path (e.g., "Components/Buttons", "Layout"). Use "all" or omit to list all components. | |
| pageSize | No | Number of components per page (1-100). Default is 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | Yes | ||
| pagination | Yes | Where the returned slice sits in the full result set. |