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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/talk_to_figma_mcp/server.ts:155-182 (registration)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) }`, }, ], }; } } );
- src/talk_to_figma_mcp/server.ts:159-181 (handler)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).{},