add_light
Adds a light at a woxel position with color, energy, range, shadows, and optional asset; batch up to 100 lights in one undo step and returns their IDs.
Instructions
Add a light at a woxel position. Returns the new element id.
color: '#rrggbb' (default warm). energy: brightness.
range: the Range Dungeondraft's own Light tool shows, which its saved map
and a VTT export record too. get_element and list_elements report it
in the same units.
asset: optional Lights gradient/cookie texture path.
snap: 'none', 'grid' or 'auto'; see get_snap_settings.
lights: up to 100 {x, y, color, energy, range, shadows, asset} entries,
added as ONE undo step and all-or-nothing; the other arguments are then
ignored. Returns `ids`. A light for an object: place_object(light=...).
modify_object changes a placed light's color, energy, range and shadows.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_light"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| snap | No | ||
| asset | No | ||
| color | No | ||
| range | No | ||
| energy | No | ||
| lights | No | ||
| shadows | No |