Measure clearance between parts
bambu_measure_clearanceMeasures the smallest clearance between parts in 3MF or OBJ files to judge whether print-in-place mechanisms will fuse; touching parts are merged first.
Instructions
Measures the smallest clearance between the parts in a 3MF or OBJ, to judge whether a print-in-place mechanism will fuse when printed. Parts that touch each other are first merged into rigid bodies before comparing, because Bambu also stores the colour-change segments of a single solid as separate parts; without merging, one piece would be reported as "clearance 0". When the clearance is too small it suggests compensation, distinguishing outer contours from holes (the enclosed side is a hole to the slicer and is controlled by a different parameter). STL has no part boundaries, so it cannot be measured. No side effects.
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": {
"modelPath": "<modelPath>"
},
"name": "bambu_measure_clearance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelPath | Yes | Absolute path to a 3MF or OBJ file; it must be inside an allowed model directory. | |
| samplingMm | No | Surface sampling spacing; smaller is more accurate but slower. Defaults to 0.2 mm. | |
| reportThresholdMm | No | Part pairs farther apart than this are left out of the report. Defaults to 2 mm. | |
| minimumClearanceMm | No | The smallest clearance that prints reliably. Defaults to 0.15 (the practical lower limit for PLA with a 0.4 mm nozzle). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | Yes | ||
| bodies | Yes | ||
| format | Yes | ||
| findings | Yes | ||
| partCount | Yes | ||
| tightestGapMm | No | ||
| recommendation | No | ||
| minimumClearanceMm | Yes |