figma_token_usage
Scan a Figma subtree to aggregate used colors, typography, radii, spacing, strokes, and effects with counts and bound styles, helping derive design tokens when variables or styles are missing.
Instructions
Scan a subtree (or whole file) and aggregate the raw design values actually used: colors, typography combos, corner radii, auto-layout gaps/paddings, stroke widths, effects, each with counts and the variable/style bound where present. Useful to derive a token set from files that do not define variables or styles. A typography entry carries only the properties the file records, and always at least one: text that records none of them is counted in textWithoutTypography instead, so it is accounted for without standing in the list as an entry naming no value. Dated by exportedAt and account, or fileModifiedAt for a file read from disk, as the server's instructions say (figma-reader help on the command line).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | A local .fig path, a Figma file key or a figma.com/design/... URL (see the server's instructions, or figma-reader help) | |
| node_id | No | ||
| refresh | No | Export the live file again rather than read a local or cached copy (see the server's instructions, or figma-reader help) | |
| min_count | No | Drop values used fewer times (default 1) | |
| include_hidden | No |