get_design_specs
Returns exact measurements, colors, text and typography of a Figma frame's named layers before you write UI code, optionally scaled to a target device width in dp or pt.
Instructions
Returns the measurements of the Figma frame: position, size, colors, texts and typography of every named layer. Use it BEFORE writing a screen's UI code. If deviceWidth is passed, values are scaled to that width in dp or pt.
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": {
"figmaUrl": "<figmaUrl>"
},
"name": "get_design_specs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | true to download the Figma frame again instead of using the local cache. Use it only if the design changed: each download uses Figma API quota. | |
| figmaUrl | Yes | Figma frame URL (Copy link to selection), must include ?node-id= | |
| deviceWidth | No | Logical width of the target device in dp or pt (e.g. 412 for Pixel 7, 402 for iPhone 17). Optional. |