search_components
Search design system components by name, title, category, or purpose to find UI elements like buttons, forms, modals, and cards. Filter by text or semantic purpose with pagination.
Instructions
Search design system components by name, title, category, or purpose. Find UI components like modals, dialogs, buttons, forms, cards, etc. Supports text search (query) and semantic search by purpose. Available purposes: "form inputs", "navigation", "feedback", "data display", "layout", "buttons", "progress", "media". Supports pagination for large result sets.
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": "search_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based). Default is 1. | |
| query | No | Text search query (e.g., "button", "form", "nav"). Use "*" to list all. Case-insensitive partial matching. Optional if purpose is provided. | |
| purpose | No | Semantic search by purpose. Available: "form inputs", "navigation", "feedback", "data display", "layout", "buttons", "progress", "media". Can be combined with query. | |
| pageSize | No | Number of components per page (1-100). Default is 20. | |
| searchIn | No | Where to search: "name" (component name only), "title" (full path), "category" (grouping), or "all" (search everywhere, default) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | Yes | ||
| pagination | Yes | Where the returned slice sits in the full result set. | |
| description | No | What the matched purpose covers; present only for a purpose search |