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
| Name | Required | Description | Default |
|---|---|---|---|
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)}` } ] }; } } );
- src/talk_to_figma_mcp/tools/document-tools.ts:195-221 (registration)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"