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
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | The team ID | |
| page_size | No | Optional. Number of items per page | |
| cursor | No | Optional. Cursor for pagination |
Implementation Reference
- src/handlers/projects.ts:57-62 (handler)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)}`); }
- src/types/projects.ts:28-30 (schema)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) }], }; }