raycast
Cast a ray from the camera through screen coordinates to identify and return 3D objects hit, enabling picking and selection in Three.js scenes.
Instructions
[INSPECT] Read-only. Cast a ray from the camera through screen coordinates and return hit objects.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "raycast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Normalized device X (-1 to 1, 0 = center) | |
| y | Yes | Normalized device Y (-1 to 1, 0 = center) | |
| maxHits | No | Max hits (default: 10) |