figma_search_assets
Search Figma files for design system assets including variables and components from local and remote libraries. Filter by name and type to find specific elements for instantiation.
Instructions
Search for design system assets in the current Figma file. Returns: (1) team library VARIABLES via figma.teamLibrary API (all enabled libraries), (2) file-local COMPONENTS / COMPONENT_SETS, and (3) v1.8.0+: REMOTE LIBRARY COMPONENTS discovered by scanning existing INSTANCE nodes (returned as 'libraryComponents'). For library components to appear, at least one DS instance must exist in the file — place one manually first if empty. Pass currentPageOnly=false to scan all pages for instance discovery. Use the returned componentKey with figma_instantiate_component to place new instances. Pass assetTypes to filter: ['variables'], ['components'], or both (default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figmaUrl | No | Figma or FigJam file URL for routing. | |
| fileKey | No | Target a specific connected file. | |
| query | No | Search query to filter by name | |
| assetTypes | No | Asset types to search: 'variables', 'components'. Default: both. | |
| limit | No | Max results per asset type (default 25, max 80) | |
| currentPageOnly | No | For components: search current page only (default true) |