Design tokens
get_tokensExtract a Figma file’s local variables and styles as a readable list, CSS custom properties, or JSON so coding agents can use design tokens.
Instructions
The file's local variables (all modes) and styles — as a readable list, CSS custom properties, or JSON.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Which open Figma file (name or key) when several are connected. Default: the most recently active. | |
| filter | No | Only tokens whose name contains this. | |
| format | No | Default list. |