get_remote_components
Retrieve available team library components in Figma via AI-powered commands to streamline design workflows and enhance collaboration.
Instructions
Get available components from team libraries in Figma
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- Full implementation of the 'get_remote_components' MCP tool, including registration via server.tool(), empty input schema ({}), and the handler function that forwards the command to the Figma plugin and returns the JSON-formatted result or error as text content.// Get Remote Components Tool 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)}` } ] }; } } );
- TypeScript type definition for FigmaCommand union type, which includes 'get_remote_components' as one of the valid commands sent to the Figma plugin by the tool handler.| "get_remote_components"
- src/talk_to_figma_mcp/tools/index.ts:14-14 (registration)Intermediate registration call to registerDocumentTools, which contains the specific registration for get_remote_components.registerDocumentTools(server);