validate_generated_mesh
Checks that a generated STL, OBJ, GLB, or 3MF mesh reads correctly, has reasonable dimensions and polygon count, and is watertight, flagging invalid or open geometry before slicing.
Instructions
Validate a 3D mesh file's geometry.
Checks that the file is a valid STL, OBJ, GLB, or 3MF, has reasonable
dimensions, an acceptable polygon count, and is manifold
(watertight). It does not judge whether the part PRINTS (a sound
mesh can still rest on a point): ``analyze_printability`` gives
that verdict, and ``validate_and_prepare`` runs the whole
pre-print check.
``message`` calls the mesh valid only when it reads and is
closed. ``validation.valid`` says the file reads as a mesh;
``validation.closed_solid`` says whether it is a closed solid
(it reads, and every piece is closed), and a mesh that is not is
told so in ``message`` and in ``validation.warnings``.
Args:
file_path: Path to an STL, OBJ, GLB, or 3MF file.
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": {
"file_path": "<file_path>"
},
"name": "validate_generated_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to an STL, OBJ, GLB, or 3MF file. |