Cast ray
cast_rayWhat stands on a path: the bodies a ray hits, nearest first, with distance. An empty result counts only together with n_tested. segments pairs each body's crossings into enter_m/exit_m; null with reason odd_crossings, truncated or max_distance and the unpaired crossings_m. Read-only.
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": {
"origin": "<origin>",
"direction": "<direction>",
"among": "<among>"
},
"name": "cast_ray"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| among | Yes | The elements tested; only these can be hit | |
| max_m | No | Length of the ray; with it, segments stay null (reason max_distance) | |
| origin | Yes | [x,y,z] in m from the project origin | |
| direction | Yes | [x,y,z] in m ({x,y,z} is read the same) |