game_light_2d
Create and configure 2D point or directional lights and light occluders in Godot scenes. Set color, energy, range, and occluder polygon points to control local illumination and shadows.
Instructions
Create/configure 2D lights and light occluders
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_light_2d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Node name | |
| color | No | Light color {r,g,b,a} | |
| range | No | Light texture range | |
| action | Yes | Action: create_point, create_directional, create_occluder | |
| energy | No | Light energy | |
| points | No | Occluder polygon points [{x,y},...] (for create_occluder) | |
| nodePath | No | Node path (for configure) | |
| parentPath | No | Parent node path |