measure_distance
Calculate the minimum distance in millimeters between two entities or points, returning the closest points on each for dimension checks and clearance analysis.
Instructions
Minimum distance between two entities or points, in mm.
Each operand is a ref from another tool or a point [x, y, z] in mm. Returns {"distance_mm", "point_a_mm", "point_b_mm"}: the closest points on each operand (null when Fusion does not report them).
Example: measure_distance(a="", b="") -> height.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "measure_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | An entity ref (e.g. a face, edge, vertex, body, origin:XY) or a point [x, y, z] in mm | |
| b | Yes | An entity ref (e.g. a face, edge, vertex, body, origin:XY) or a point [x, y, z] in mm |