measure_gap
Measure the actual gap between two parts' bounding boxes along an axis to size and position a spanning part correctly, preventing overhangs from misalignment.
Instructions
Measure the real gap between two parts' bounding boxes along one axis.
Use this before building a part meant to span two others (e.g. a chair
stretcher between two legs): size and position the spanning part from
the measured gap, instead of deriving a span independently of where
those parts actually ended up — that mismatch is exactly how a
stretcher ends up overhanging its legs by tens of mm.
This is an axis-aligned bounding-box measurement (v0 of a joint model),
not a full face-to-face mate — it does not handle rotated parts or
non-axis-aligned relationships.
Args:
doc_name: The name of the document.
part_a: Name of the first part.
part_b: Name of the second part.
axis: Which axis to measure the gap along: "x", "y", or "z".
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": {
"doc_name": "<doc_name>",
"part_a": "<part_a>",
"part_b": "<part_b>",
"axis": "<axis>"
},
"name": "measure_gap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | ||
| part_a | Yes | ||
| part_b | Yes | ||
| doc_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |