create_image_pack
Create a reusable .dungeondraft_pack from named, tagged PNGs so custom objects become searchable library assets in Dungeondraft.
Instructions
Build a native, reusable .dungeondraft_pack of named, tagged PNG objects.
Writes only into Dungeondraft's configured asset folder (Settings > Assets),
never to an arbitrary path. filename: bare NEW .dungeondraft_pack name in
that folder; existing files are never overwritten. name: pack title related
to the map/project. Each image needs an absolute PNG path, a library name,
and descriptive tags (e.g. furniture, workshop, oak). PNG alpha is kept.
pack_id: optional eight alphanumeric characters; generated if omitted.
This creates a complete pack; it does not edit third-party archives. To
extend a collection, rebuild from the full image list under a new filename.
Prefer a new id during a live session; Dungeondraft caches loaded pack ids.
After writing, ask the user to restart Dungeondraft so it mounts the pack
(an Assets window rescan is untested), then prepare_map_with_packs with the
returned id. This tool does not refresh
the editor or change the open map's included packs. search_pack_contents can
already list the new archive from disk. Embedded import_image objects stay
map-local; these pack assets become searchable library entries once included.
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": "<name>",
"images": "<images>"
},
"name": "create_image_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| author | No | ||
| images | Yes | ||
| pack_id | No | ||
| filename | Yes |