split_mesh_by_component
Separates disconnected bodies in a multi-component STL mesh into individual STL files using shared-edge analysis, making each component available for editing, inspection, or printing.
Instructions
Split a multi-component mesh into separate STL files.
Identifies disconnected bodies (components) using shared-edge
analysis and writes each as a separate file.
:param file_path: Path to mesh file (.stl).
:param output_dir: Directory for output files. Defaults to input directory.
:returns: Dict with component count and file paths.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": "split_mesh_by_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to mesh file (.stl). | |
| output_dir | No | Directory for output files. Defaults to input directory. Default: "". |