simplify_mesh_model
Reduce STL mesh triangle count with vertex-clustering decimation to produce a lower-resolution version for faster previews or smaller files.
Instructions
Reduce mesh triangle count for faster preview or smaller files.
Uses vertex-clustering decimation to merge nearby vertices.
The result is a lower-resolution version of the same shape.
:param file_path: Path to the STL file.
:param target_ratio: Target fraction of original triangles (0.01-1.0).
:param output_path: Output path (defaults to ``<name>_simplified.stl``).
:returns: Dict with original/simplified triangle counts and reduction percentage.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": {
"file_path": "<file_path>"
},
"name": "simplify_mesh_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the STL file. | |
| output_path | No | Output path (defaults to ``<name>_simplified.stl``). Default: "". | |
| target_ratio | No | Target fraction of original triangles (0.01-1.0). Default: 0.5. |