Skip to main content
Glama

read_my_design

Retrieve comprehensive details about selected elements in Figma, including node information, to enhance design understanding and workflow integration.

Instructions

Get detailed information about the current selection in Figma, including all node details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'read_my_design' tool. It sends a 'read_my_design' command to the Figma plugin via sendCommandToFigma and returns the JSON-stringified result as text content, or an error message if failed.
    async () => { try { const result = await sendCommandToFigma("read_my_design", {}); return { content: [ { type: "text", text: JSON.stringify(result) } ] }; } catch (error) { return { content: [ { type: "text", text: `Error getting node info: ${error instanceof Error ? error.message : String(error) }`, }, ], }; } }
  • Registration of the 'read_my_design' MCP tool using server.tool(). Defines the name, description, empty input schema ({}), and the handler function.
    server.tool( "read_my_design", "Get detailed information about the current selection in Figma, including all node details", {}, async () => { try { const result = await sendCommandToFigma("read_my_design", {}); return { content: [ { type: "text", text: JSON.stringify(result) } ] }; } catch (error) { return { content: [ { type: "text", text: `Error getting node info: ${error instanceof Error ? error.message : String(error) }`, }, ], }; } } );
  • Input schema for 'read_my_design' tool: empty object {}, indicating no input parameters required.
    {},

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/pipethedev/Talk-to-Figma-MCP'

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