UI DNA

Specifications · rev 0.3.1

Spec 03

Tools

Pin 06 of 12

Pin06

extract_tokens

Extract tokens · shape workflow · group Read

Readworkflow

Return the token clusters of a scan: colors, typography, font families, font sizes, spacing, radii, shadows and breakpoints. Every token lists its member values with sample counts; values are only merged when the cluster evidence supports it.

CLIuidna tokens <scanId>
MCPextract_tokens

03.06.1Effects

Writes artifactsread-only
Destructivenon-destructive
Idempotentsame input, same output
Networklocal only
Long-runningreturns immediately

03.06.2Input

FieldTypeRequiredDescription
scanIdstringrequiredScan id returned by scan_interface, e.g. scan_20261013_3f9a1c.
kindsarray of "color" | "font-family" | "font-size" | "font-weight" | "line-height" | "letter-spacing" | "spacing" | "radius" | "shadow" | "breakpoint"optionalRestrict to some token kinds.
outRootstringoptional—

03.06.3Result fields

scanIdtokenscounts

Every field arrives inside the evidence envelope.