search_design_system
Find components, styles, and variables in the open Figma file before designing, so you can reuse existing assets.
Instructions
Search the design system of the file open in Figma Desktop: local components and component sets (with their properties and variant options), library components the file already uses (with an instance to copy), and local paint, text and effect styles and variables (with their default-mode values). Every word of query must appear in the name or description; leave it empty to list everything. Call it before designing with use_figma, and reuse what it finds: figma.getNodeByIdAsync(id) then component.createInstance(), instance.clone() for a library component, figma.getStyleByIdAsync and figma.variables.getVariableByIdAsync. Libraries the file does not use yet are not visible to the plugin; instancesNotScanned means the page was too large to look through all its instances. Needs the plugin and Design mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | What to search (default: all of components, styles, variables). | |
| limit | No | Most results per kind (default 50). | |
| query | No | Words to look for, e.g. "button primary". | |
| fileKey | No | The key of the Figma file. Accepted for compatibility; the file open in Figma Desktop is always used. | |
| allPages | No | Search components on every page, not just the current one (slower on large files). |