export_tokens
Exports local Figma variables to DTCG JSON and CSS custom properties, resolving variable aliases; optionally writes tokens.json and tokens.css to a directory or returns the file contents.
Instructions
Выгружает локальные Figma variables в DTCG JSON и CSS custom properties (по первому mode каждой коллекции, ссылки между переменными резолвятся в алиасы). Без outputDir возвращает содержимое файлов в ответе, с outputDir — пишет tokens.json и tokens.css на диск.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputDir | No | Папка для tokens.json и tokens.css; создаётся при необходимости |