Skip to main content
Glama

get_team_styles

Retrieve design styles for a Figma team to maintain visual consistency across projects. Specify team ID to access color palettes, typography, and component styles.

Instructions

Get styles for a team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
team_idYesThe team ID
page_sizeNoOptional. Number of items per page
cursorNoOptional. Cursor for pagination

Implementation Reference

  • Core implementation of the get_team_styles tool. Fetches team styles via Figma API using team_id and optional pagination.
    async getTeamStyles(args: GetTeamStylesArgs) { const { team_id, ...paginationParams } = args; const params = { ...paginationParams }; return this.api.makeRequest(`/teams/${team_id}/styles${this.api.buildQueryString(params)}`); }
  • TypeScript interface defining input arguments for get_team_styles: team_id required, pagination optional.
    export interface GetTeamStylesArgs extends PaginationParams { team_id: string; }
  • src/index.ts:412-431 (registration)
    Tool registration in the list of available tools, including name, description, and input schema.
    name: 'get_team_styles', description: 'Get styles for a team', inputSchema: { type: 'object', properties: { team_id: { type: 'string', description: 'The team ID' }, page_size: { type: 'number', description: 'Optional. Number of items per page' }, cursor: { type: 'string', description: 'Optional. Cursor for pagination' } }, required: ['team_id'] },
  • src/index.ts:594-600 (registration)
    Dispatch handler in the CallToolRequestSchema switch statement that routes the tool call to projectsHandler.getTeamStyles.
    case 'get_team_styles': { const args = this.validateArgs<GetTeamStylesArgs>(request.params.arguments, ['team_id']); const result = await this.projectsHandler.getTeamStyles(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }

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/smithery-ai/mcp-figma'

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