Search components across libraries
search_componentsSearch UI component libraries with natural-language queries to find matching components. Returns a ranked list of metadata, then fetch code via get_component.
Instructions
Search all configured component libraries (or one) for components matching a natural-language query, e.g. 'pricing table', 'date picker', 'sidebar'. Synonym-aware: 'modal' also finds 'dialog', 'dropdown' finds 'select', etc. Returns a ranked, lightweight list (registry, name, type, title, description) — NOT the source. Pick the best match, then call get_component to fetch its real code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Optional type filter: 'ui' (single component), 'block' (composed section), 'component', 'hook' | |
| limit | No | Max results (default 20) | |
| query | Yes | What you need, e.g. 'pricing table' or 'avatar group' | |
| registry | No | Optional registry id to restrict the search (see list_registries) |