create_collision_polygon
Add a CollisionPolygon2D node to a Godot scene using an array of [x,y] points to define collision boundaries for physics objects.
Instructions
Create CollisionPolygon2D.
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>",
"points": "<points>"
},
"name": "create_collision_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Node name | CollisionPolygon2D |
| points | Yes | Array of [x, y] points (e.g. [[0,0], [100,0], [100,50], [0,50]]) | |
| scene_path | Yes | Path to .tscn scene file | |
| parent_path | No | Parent node path (usually a StaticBody2D or Area2D) | . |