set_shape_points
Set polygon points, circle radius, or rectangle extents on CollisionShape2D or CollisionPolygon2D nodes to define collision shapes in Godot scenes.
Instructions
Set shape on CollisionShape2D.
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": {
"scene_path": "<scene_path>",
"node_path": "<node_path>"
},
"name": "set_shape_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | Points for polygon shapes | |
| radius | No | Radius for circle/capsule shapes | |
| extents | No | [width, height] for rectangle shapes | |
| node_path | Yes | Node path to CollisionShape2D or CollisionPolygon2D | |
| scene_path | Yes | Path to .tscn scene file | |
| shape_type | No | Shape type (for CollisionShape2D) |