figma_search_components
Find Figma components by name, category, or description and return paginated keys for instantiation, with optional cross-file library search by file key or URL.
Instructions
Search for components by name, category, or description. Returns paginated results with component keys for instantiation. Automatically loads the design system cache if needed.
NEW: Cross-file library search! Pass a libraryFileKey or libraryFileUrl to search for components in a published shared library (different file). This uses the REST API and requires FIGMA_ACCESS_TOKEN.
Without libraryFileKey/libraryFileUrl, searches the currently open file (local components via Plugin API).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to return (default: 10, max: 25) | |
| query | No | Search query to match component names or descriptions | |
| offset | No | Offset for pagination | |
| category | No | Filter by category (e.g., 'Button', 'Input', 'Card') | |
| libraryFileKey | No | File key of a published library to search in (for cross-file library access). Overrides local search. | |
| libraryFileUrl | No | URL of a published library file to search in (e.g., https://www.figma.com/design/abc123/...). Alternative to libraryFileKey. |