get_document_info
Retrieve comprehensive details about the current Figma document, enabling programmatic analysis and interaction through 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:95-122 (registration)Registration of the 'get_document_info' MCP tool, including the input schema (empty object, no parameters) and the handler function that proxies the command to the Figma plugin via sendCommandToFigma and formats the response as MCP content.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) }`, }, ], }; } } );