Skip to main content
Glama

get_styles

Extract all design styles from a Figma document directly, enabling efficient access to typography, colors, and effects for streamlined design workflows.

Instructions

Get all styles from the current Figma document

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline handler and registration for the 'get_styles' MCP tool. It executes by sending the 'get_styles' command to the Figma plugin via websocket and returns the result as a text content block or an error message.
    server.tool( "get_styles", "Get all styles from the current Figma document", {}, async () => { try { const result = await sendCommandToFigma("get_styles"); return { content: [ { type: "text", text: JSON.stringify(result) } ] }; } catch (error) { return { content: [ { type: "text", text: `Error getting styles: ${error instanceof Error ? error.message : String(error)}`, }, ], }; } } );
  • Part of the FigmaCommand type union, defining 'get_styles' as a valid command type for the Figma plugin.
    | "get_styles"

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/arinspunk/claude-talk-to-figma-mcp'

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