game_physics_2d
Run Area2D overlap checks and 2D point, shape, or ray queries to detect collisions and identify nodes in Godot scenes.
Instructions
Area2D queries and 2D point/shape intersections
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": {
"action": "<action>"
},
"name": "game_physics_2d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End point {x,y} (for ray) | |
| from | No | Origin point {x,y} | |
| size | No | Rectangle size {x,y} (shape_query rectangle) | |
| action | Yes | Action: overlap, point_query, shape_query, ray | |
| radius | No | Circle radius (shape_query circle) | |
| nodePath | No | Area2D/node path (for overlap) | |
| position | No | Query position {x,y} (point_query/shape_query) | |
| shapeType | No | Shape: circle or rectangle (shape_query) | |
| maxResults | No | Max results. Default: 32 | |
| collisionMask | No | Collision mask bitmask |