Search Icons
search-iconsSearch for Lucide icons by submitting groups of related keywords. Each group returns a list of matching icon names.
Instructions
Use this to search for a list of Lucide icons using tokenised matching. Each tool call should receive an array of sub-arrays of keywords as input to use in the search. Each sub-array should contain related keywords that convey a specific concept or visual meaning. Avoid the use of articles (e.g. 'a', 'the') and prepositions (e.g. 'in', 'on') in keywords if possible. The tool will return an array of sub-arrays of icon names such that each output sub-array contains icon names that match the search criteria for that specific input sub-array. Then, from the list of matches, select the most appropriate icon name.
Usage Example: To search for icons that represents the concepts "home page", "graph" and "warning", you might call:
search-icons({ keywords: [["home", "house"], ["graph", "chart"], ["danger"]] })This will return an output similar to:
{
"matches": [
[ "birdhouse", "house-heart", "house-plug", "house-plus", "house-wifi", "house", "map-pin-house" ],
[ "chart-area", "chart-bar-big", "chart-bar-decreasing", "chart-bar-increasing", "chart-bar-stacked", "chart-bar", "chart-candlestick" ],
[ "book-alert", "circle-alert", "cloud-alert", "file-exclamation-point", "message-circle-warning", "message-square-warning", "octagon-alert", "skull", "triangle-alert" ]
]
}How to use icon names in code:
With React: Convert the selected icon name to Pascal-case and import as a component from the 'lucide-react' package.
With React Native: Convert the selected icon name to Pascal-case and import as a component from the 'lucide-react-native' package.
With Astro: Convert the selected icon name to Pascal-case and import as a component from the '@lucide/astro' package.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | Array of sub-arrays of keywords to use in the search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matches | Yes | Array of sub-arrays of best-matching icon names. |