list_elements
Retrieve the IDs, positions, rotation, scale, and asset of objects, walls, lights, paths, portals, roofs, or texts on a Dungeondraft map so you can move, modify, select, or delete them.
Instructions
List elements currently on the map with their ids, positions, rotation, scale and asset.
kind: one of 'objects', 'walls', 'lights', 'paths', 'portals', 'roofs', 'texts'.
Use the returned ids with move_element / modify_object / delete_element / select_elements.
include_points: also return each wall's and path's polyline. Walls and paths
are shapes, not points — without this they report a meaningless single
position (a real hand-built map lists every wall at [0, 0]). Off by
default because a map can hold hundreds of paths and the coordinates
swamp the listing; get_element always includes them for one element.
offset: skip this many before returning, for paging through a large map.
include_bounds: give objects `opaque_bounds` too, as get_element does. It
reads every texture's pixels once, so ask only when fitting something.
Objects carry `bounds`, [x0, y0, x1, y1] in woxels after scale and
rotation: where the canvas reaches.
`total` is how many elements of this kind exist, `count` how many came back,
and `truncated` says plainly that there are more. Read `total`, not `count`,
before concluding anything about the whole map.
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": "list_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | objects | |
| limit | No | ||
| offset | No | ||
| include_bounds | No | ||
| include_points | No |