game_shape_2d
Manipulate Line2D and Polygon2D node points in Godot by adding, setting, clearing, or retrieving coordinate arrays for custom 2D shapes.
Instructions
Line2D/Polygon2D point manipulation
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": {
"nodePath": "<nodePath>",
"action": "<action>"
},
"name": "game_shape_2d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Color {r,g,b,a} | |
| point | No | Single point {x,y} | |
| width | No | Line width | |
| action | Yes | Action: add_point, set_points, clear, get_points | |
| points | No | Array of points [{x,y},...] | |
| nodePath | Yes | Path to Line2D/Polygon2D node |