Skip to main content
Glama

read_my_design

Retrieve detailed information about selected Figma design elements to analyze node properties and automate design workflows through the Cursor AI interface.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration and inline handler for the MCP tool 'read_my_design'. The handler forwards the call to the Figma plugin via sendCommandToFigma and returns the result as JSON-formatted text content. Input schema is empty object {}.
    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) }`, }, ], }; } } );
  • The execution handler for 'read_my_design' tool. It invokes the Figma plugin command 'read_my_design' and serializes the response as text.
    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) }`, }, ], }; } }
  • Empty input schema for the 'read_my_design' tool (no 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/andreycretsu/cursor-talk-to-figma-mcp-main'

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