获取 Figma 设计变量 (Design Tokens)
figma_get_variablesRetrieve design variable definitions linked to a Figma node, including colors, spacing, and fonts, to extract design system tokens.
Instructions
获取节点关联的设计变量定义,如颜色、间距、字体等复用值。
输出示例: {'icon/default/secondary': #949494, 'spacing/md': 16px}
适合提取设计系统 token。
Args:
node_id (string, 必填): Figma 节点 ID
Returns: 变量定义列表。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Figma 节点 ID,如 "0:118" 或 "0-118"。从 Figma URL 的 node-id 参数提取 |