List local styles
figma_get_stylesLists a Figma file's local color, text, effect, and grid styles with values, so you can map them to CSS variables or theme tokens.
Instructions
Lists the file's local color, text, effect and grid styles with their values (colors as hex, typography as font/size/line-height). Use to map Figma styles to CSS variables or theme tokens.
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": {
"url": "<url>"
},
"name": "figma_get_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Figma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works. | |
| format | No | yaml (default, ~30% fewer tokens) or json | yaml |
| source | No | Where to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one. | auto |