validate_assembly
Checks an assembly for clearance errors, joint failures, and printability, returning validated state with motion-sweep results and optional printer-tuned screw-hole data.
Instructions
Validate an assembly for correctness and printability.
Runs clearance checks and joint validations on the assembly,
returning the validated assembly state with results populated.
A joint whose interface declares a ``motion`` (see
``add_assembly_interface``) is swept through its range with its
parts' own files: if the parts meet at some pose the joint fails,
naming that pose and the range it moves freely, and the joint's
``motion_sweep`` carries the numbers (the tightest gap and where).
Args:
assembly_json: JSON string of the current assembly state.
printer_id: Optional printer model id (e.g.
``"bambu_a1"``). With it, each joint that drives a
screw into a printed part gains a ``screw_hole`` block
(compensated hole diameter, thread engagement,
install-torque ceiling, lead-in chamfer) tuned for that
machine where Kiln has data, else a generic starting
point. Omit it for the plain validation.
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": {
"assembly_json": "<assembly_json>"
},
"name": "validate_assembly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printer_id | No | Optional printer model id (e.g. ``"bambu_a1"``). With it, each joint that drives a screw into a printed part gains a ``screw_hole`` block (compensated hole diameter, thread engagement, install-torque ceiling, lead-in chamfer) tuned for that machine where Kiln has data, else a generic starting point. Omit it for the plain validation. | |
| assembly_json | Yes | JSON string of the current assembly state. |