get_document_info
Retrieve comprehensive details about the current Figma document to analyze or modify designs programmatically via the Talk to Figma MCP server.
Instructions
Get detailed information about the current Figma document
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/talk_to_figma_mcp/server.ts:89-116 (registration)Registration and handler implementation for the MCP tool 'get_document_info'. It sends a command to the Figma plugin via sendCommandToFigma and returns the result as text content, with error handling.server.tool( "get_document_info", "Get detailed information about the current Figma document", {}, async () => { try { const result = await sendCommandToFigma("get_document_info"); return { content: [ { type: "text", text: JSON.stringify(result) } ] }; } catch (error) { return { content: [ { type: "text", text: `Error getting document info: ${error instanceof Error ? error.message : String(error) }`, }, ], }; } } );