Probe a part along rays and points
probe_partMeasure a part along rays and at points instead of looking at it. This is the tool for every question of the form 'is there material here', 'how thick is that', 'does this hole break through', 'do these two bores meet' — a render cannot settle any of them, and neither can arithmetic on the script: the script says what was asked for, and this says what was built. Reach for it before you reason from a dimension in the source.
Each point reports medium, either "material" or "void", plus the distance to the nearest surface (negative in material). Each ray reports every crossing in order, each with the medium it passed into and surface_of, the tag of the node whose surface that face belongs to — read those names down the list and they name the features the line went through, which is how you tell two voids that meet from two that do not. Also solid_mm, and first_solid_mm, which is a wall thickness, measured.
A ray that reports no crossings at all crossed nothing but void: that is a positive result, not a failed measurement. Everything is measured on the exact solid — every fillet and chamfer is in it, and a distance near a corner is the true distance — so there is nothing left out to allow for. For a part in several bodies each crossing and point also says which body. On a surface, which has no inside, a point is never material: its distance_mm is to the surface, and a ray lists every place it passes through the surface as a crossing into void.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "probe_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rays | No | Lines to measure along. | |
| edits | No | Changes to make before building, in order, each { old, new } replacing text that appears exactly once; nothing is written back. | |
| points | No | Points to test for material, in mm. | |
| script | No | A parcad DSL script ending in a returned shape. Give this or `project`, not both. | |
| project | No | The part to build instead of sending it, as list_projects spells it, or "@session" for the script on the user's screen. | |
| timeout_s | No | Seconds the kernel may take to build the part, 1 to 600. Defaults to 20, or PARCAD_OCCT_TIMEOUT. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | No | ||
| rays | Yes | ||
| units | Yes | ||
| points | Yes | ||
| script_sha256 | Yes | ||
| unlisted_rays | No | ||
| matched_loosely | No | ||
| unlisted_points | No |