Skip to main content
Glama
arinspunk

Claude Talk to Figma MCP

by arinspunk

get_remote_components

Retrieve available components from team libraries in Figma to access shared design elements for AI-assisted design workflows.

Instructions

Get available components from team libraries in Figma

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_remote_components' MCP tool. It sends a 'get_remote_components' command to the Figma plugin via WebSocket, formats the result as JSON text content, and handles errors.
    server.tool(
      "get_remote_components",
      "Get available components from team libraries in Figma",
      {},
      async () => {
        try {
          const result = await sendCommandToFigma("get_remote_components");
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(result, null, 2)
              }
            ]
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `Error getting remote components: ${error instanceof Error ? error.message : String(error)}`
              }
            ]
          };
        }
      }
    );
  • Registers the 'get_remote_components' tool on the MCP server within the registerDocumentTools function.
    server.tool(
      "get_remote_components",
      "Get available components from team libraries in Figma",
      {},
      async () => {
        try {
          const result = await sendCommandToFigma("get_remote_components");
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(result, null, 2)
              }
            ]
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `Error getting remote components: ${error instanceof Error ? error.message : String(error)}`
              }
            ]
          };
        }
      }
    );
  • Includes 'get_remote_components' in the FigmaCommand type union, used for typing commands sent to the Figma plugin.
    | "get_remote_components"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arinspunk/claude-talk-to-figma-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server