remove_mesh_floating_regions
Clean downloaded or marketplace STL models by detecting and removing small disconnected floating geometry, such as support pillars and internal fragments, keeping the main mesh intact.
Instructions
Remove small disconnected components (floating geometry).
Downloads and marketplace models often contain support pillars,
internal fragments, or other floating geometry. This tool
identifies connected components and removes the small ones.
:param file_path: Path to the STL file.
:param output_path: Output path (defaults to overwriting input).
:param keep_largest: Keep only the largest component (default True).
:param min_triangle_pct: Min triangle % to keep (when keep_largest=False).
:returns: Dict with removal statistics.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": "remove_mesh_floating_regions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the STL file. | |
| output_path | No | Output path (defaults to overwriting input). Default: "". | |
| keep_largest | No | Keep only the largest component (default True). Default: true. | |
| min_triangle_pct | No | Min triangle % to keep (when keep_largest=False). Default: 1.0. |