modify_object
Adjust an existing object's scale, rotation, shadow, light-blocking, or layer by id to refine or repair a placed Dungeondraft asset; lights also accept color, energy, and range.
Instructions
Modify an existing object's scale, rotation (degrees), color, shadow and/or light-blocking by id.
block_light: whether this object STOPS light passing through it. A drawn
shadow and a light block are different things — a crate stack with a
shadow but no block still lets a lantern light the room through it. Set
it on anything solid enough to stand behind: crates, bookcases, screens,
a wagon. get_element reports it back.
modulate: nonempty values are refused because the tint does not survive
saving and reopening.
color is REFUSED: colour is baked at placement and cannot be changed
afterwards, here or in Dungeondraft's own UI. Set it in place_object.
layer: move an existing object to a layer VALUE (multiple of 100, -500..900,
or 1100 with the Unofficial Patch).
Unlike colour this IS changeable after placement, and it is how a map built
before layers were assigned correctly gets repaired.
A LIGHT takes color, energy, range and shadows (as add_light), and they do
change after placement; nothing else applies to it.
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": {
"id": "<id>"
},
"name": "modify_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| color | No | ||
| layer | No | ||
| range | No | ||
| scale | No | ||
| energy | No | ||
| shadow | No | ||
| shadows | No | ||
| modulate | No | ||
| rotation | No | ||
| block_light | No |