Roblox Raycast
roblox_raycastCast a ray in Roblox 3D space to detect objects and return hit information, with configurable filters and distance.
Instructions
Cast a ray in Roblox 3D space and return hit information.
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>"
},
"name": "roblox_raycast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Ray origin point. | |
| direction | Yes | Ray direction vector. | |
| maxDistance | No | Maximum ray distance. | |
| filterType | No | Raycast filter type. | Exclude |
| filterPaths | No | Instance paths to include/exclude from raycast. | |
| waitForResponseMs | No | Command timeout. |