detect_mesh_pockets
Detect recessed pockets and cavities in an STL mesh before multi-part composition, returning each pocket's dimensions and position so you can size overlay geometry correctly.
Instructions
Detect pockets and cavities in a mesh before multi-part composition.
Analyzes a base model to find recessed regions (circular or rectangular
pockets) on top and bottom faces. Call this before compose_models or
multi_material_print to know pocket dimensions for overlay geometry.
:param file_path: Path to the STL file to analyze.
:param min_depth_mm: Minimum pocket depth to report (default 0.3mm).
:returns: Dict with pocket list, dimensions, and positions.
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": "detect_mesh_pockets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the STL file to analyze. | |
| min_depth_mm | No | Minimum pocket depth to report (default 0.3mm). Default: 0.3. |