Search design system
figma_local_search_design_systemSearch a Figma file and team libraries for design system components, variables, and styles using multiple queries in one call, returning ordered matches for each asset type.
Instructions
Search for design system assets (components, variables and styles) in the file and in the team's libraries. Pass queries as an array of objects, each with entity ("component", "variable" or "style") and a string query, e.g. {"fileKey":"","queries":[{"entity":"component","query":"button"},{"entity":"variable","query":"surface"}]}. Combine the searches the task needs in one call. Results come back in a results array in the same order as queries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fileKey": "<fileKey>",
"queries": "<queries>"
},
"name": "figma_local_search_design_system"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matches per query. Defaults to 10. | |
| fileKey | Yes | The key of the Figma file to use. If a URL is provided, extract the file key from it: for https://figma.com/design/:fileKey/:fileName?node-id=1-2 the fileKey is `:fileKey`. For https://figma.com/design/:fileKey/branch/:branchKey/:fileName use the branchKey. A full URL is also accepted. | |
| queries | Yes | Array of search objects. Results are returned in the same order. | |
| disableCodeConnect | No | Accepted for compatibility; this server does not attach Code Connect data to search results. | |
| includeLibraryKeys | No | Restrict results to these library keys (library file keys, as returned by figma_local_get_libraries or earlier results). |