get_file_styles
Retrieve all published design system tokens from a Figma file, including colors, text styles, and effects for consistent design implementation.
Instructions
Get all published styles defined in the file.
HOW IT WORKS:
Returns design system tokens: colors, text styles, effects
These are the official styles defined in Figma
Compact output, no chunking needed
TYPICAL WORKFLOW:
get_file_styles → global design tokens
extract_styles(frame) → frame-specific tokens
Combine for complete design system
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_key": "<file_key>"
},
"name": "get_file_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | Figma file key |