measure_distance
Measure the distance between two Figma nodes by providing their IDs. Get precise spacing to validate design layouts.
Instructions
Measure distance between two nodes.
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": {
"nodeId1": "<nodeId1>",
"nodeId2": "<nodeId2>"
},
"name": "measure_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId1 | Yes | First node | |
| nodeId2 | Yes | Second node |