prepare_map_with_packs
Creates and opens a copy of the current open Dungeondraft map with specified asset packs included so you can build using those pack assets.
Instructions
Copy the open map into one that INCLUDES asset packs, and open it.
Dungeondraft scopes packs per map and a map's set is fixed when it is
created, so a map made without packs can never reach them — list_assets on
it returns only the ~1800 core assets. This writes a copy whose header
includes the packs and opens that copy, which is how a map gets a library.
Do this BEFORE building. The copy carries the open map across untouched, so
running it on an empty scratch map costs nothing, while running it on a
finished map means continuing in the copy from here on.
filename: bare name for the new map, in the configured save directory.
packs: pack ids to include, from list_asset_packs or search_pack_contents.
REQUIRED — choose them. The copy keeps the open map's packs and adds
these. Including every installed pack is costly on a large library, and
one pack can dominate the catalogue. Pick by what the brief needs;
adding more later means preparing another copy.
The open map is saved first so the copy is current. Assets from a pack the
map does not include are not merely hidden: placing one produces an object
Dungeondraft erases on load, so include the packs rather than reaching past
them. A pack's first load can crash Dungeondraft until its thumbnails are
made: pass any `thumbnail_warning` on.
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": {
"filename": "<filename>"
},
"name": "prepare_map_with_packs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packs | No | ||
| filename | Yes |