get_variable_defs
extracts the variables and styles used in your selection (color, spacing, typography, etc). This helps the model reference your tokens directly in the generated code.
How to use it
get_variable_defs is exposed by the MCP Server Guide MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_variable_defs tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Server Guide
$
claude mcp add --transport http figma https://mcp.figma.com/mcp