Inspect UI components and official catalogues
shadcn_uiDefault action local retrieves the existing adapted components. action search discovers the official shadcn or magicui catalogue; action inspect reads source and bounded dependency/CSS/provenance information, never installs. Official upstream items require compatibility review and are not runtime verified. Get shadcn/ui component code pre-adapted for the Sandpack preview environment. Available components: accordion, dropdown_menu, dialog, sheet, tooltip, progress, separator, scroll_area, skeleton, alert. Returns ready-to-use JS code with correct imports. Use this instead of building complex UI primitives from scratch.
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": "shadcn_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Search page size, 1–30 | |
| query | No | Catalogue search text; empty lists all items | |
| action | No | local (default), search, or inspect | local |
| offset | No | Search page offset | |
| registry | No | shadcn (default) or magicui | |
| component | No | Local component or official hyphenated item name. Local: accordion, dropdown_menu, dialog, sheet, tooltip, progress, separator, scroll_area, skeleton, alert | |
| tailwindVersion | No | Target Tailwind 3 (default) or 4. MagicUI current source targets 4. |