Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_search_components

Search Figma components by name, category, or description to get paginated component keys for instantiation. Optionally search published shared libraries via 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).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_search_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results to return (default: 10, max: 25)
queryNoSearch query to match component names or descriptions
offsetNoOffset for pagination
categoryNoFilter by category (e.g., 'Button', 'Input', 'Card')
libraryFileKeyNoFile key of a published library to search in (for cross-file library access). Overrides local search.
libraryFileUrlNoURL of a published library file to search in (e.g., https://www.figma.com/design/abc123/...). Alternative to libraryFileKey.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It does disclose useful behavior: results are paginated, contain instantiation-ready component keys, the design system cache is loaded automatically, cross-file search uses the REST API and requires FIGMA_ACCESS_TOKEN, and local search uses the Plugin API. It omits failure modes, whether token absence causes an error or a fallback, and rate-limit/latency differences between the two backends.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and return shape, then the cross-file mode and its auth prerequisite. The bold "NEW:" marker and trailing paragraph are slightly promotional but still carry substantive information, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All six parameters are optional, no output schema exists, and the description covers the two execution paths plus the auth requirement, which is the main thing an agent needs before calling. Minor gaps remain on error behavior and how category filtering interacts with query, but nothing critical is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter including the override semantics of libraryFileKey and the URL alternative. The description adds meaning only at the mode level (which parameters select which backend and the token dependency), not per-parameter detail beyond the schema, so baseline 3 fits.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Search for components by name, category, or description") and names the two search modes: local Plugin API search versus cross-file REST library search. It does not differentiate itself from sibling tools such as figma_get_library_components or figma_get_component_details, which likely overlap with the library-search mode.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit conditional guidance: pass libraryFileKey/libraryFileUrl to search a published shared library, omit them to search the currently open file. It does not say when to prefer this over figma_get_library_components or figma_get_component, so selection among overlapping siblings is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools