prepare_ai_model_for_print
Fix AI-generated 3D models exported in the wrong units, convert them to printable millimeter scale, and validate mesh size, bed fit, and print recommendations.
Instructions
Prepare any AI-generated model for printing — fixes the unit mix-up.
AI model generators (Meshy, Tripo, Stability, Gemini) routinely
export models in meters instead of millimeters, so a 60mm figurine
reads as 0.06mm. This tool corrects that by the real unit
conversion when exactly one explains the size — never by scaling
to an invented "reasonable" target — then runs the full validation
pipeline and provides smart recommendations for simplification
and hollowing.
Pipeline:
1. Run validate_and_prepare for baseline analysis
2. Size — scale to target_height_mm when given; otherwise
apply a unit correction only when exactly one real
conversion (meters, centimeters, inches, microns) lands
the model at a printable size. A size several units
could explain, or none can, is reported, never guessed at.
3. Mesh simplification recommendation (if > 100K triangles)
4. Smart hollow recommendation (only when appropriate)
5. Re-validate the scaled model
6. Return combined before/after comparison
Works with STL, OBJ, and 3MF files.
:param input_path: Path to the AI-generated model file.
:param target_height_mm: Desired height in mm — an instruction,
honored at any starting size. If 0, only a unit mistake is
ever fixed; the model's designed size is otherwise kept.
:param printer_id: Optional printer model ID for bed-fit checking.
:param material: Material name (default "PLA") for material checks.
:returns: Dict with original/prepared comparison, actions taken,
recommendations, and next_action for slicing.INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
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": {
"input_path": "<input_path>"
},
"name": "prepare_ai_model_for_print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | Material name (default "PLA") for material checks. Default: "PLA". | |
| input_path | Yes | Path to the AI-generated model file. | |
| printer_id | No | Optional printer model ID for bed-fit checking. Default: "". | |
| target_height_mm | No | Desired height in mm — an instruction, honored at any starting size. If 0, only a unit mistake is ever fixed; the model's designed size is otherwise kept. Default: 0. |