Extract Observed Design Values
extract_design_tokensCollect observed FigCraft design values—colors, fonts, weights, sizes, radii, and gaps—and return token candidates plus CSS primitives without guessing semantic color roles.
Instructions
Collect observed FigCraft colors, font families, weights, sizes, radii and gaps; return token candidates and CSS primitives. Does not guess semantic color roles.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": "<document>"
},
"name": "extract_design_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | Raw FigCraft layer tree; not a screenshot. | |
| maxNodes | No |