figma_search_assets
Search Figma files for design system variables, local components, and remote library assets. Returns component keys to instantiate reusable elements.
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. v1.9.8+: When instance scan returns empty, response includes '_restFallbackHint' suggesting figma_rest_api('/v1/files//components') as a REST fallback to enumerate library components directly (requires FIGMA_REST_TOKEN env var + library file-key from active.md). 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 |
|---|---|---|---|
| limit | No | Max results per asset type (default 25, max 80) | |
| query | No | Search query to filter by name | |
| fileKey | No | Target a specific connected file. | |
| figmaUrl | No | Figma or FigJam file URL for routing. | |
| assetTypes | No | Asset types to search: 'variables', 'components'. Default: both. | |
| currentPageOnly | No | For components: search current page only (default true) |