search_pack_contents
Searches inside every installed asset pack, including packs a map lacks, to choose packs by content at preflight or when listed assets are sparse; read-only and needs no running Dungeondraft.
Instructions
Search INSIDE every installed asset pack, including packs this map lacks.
list_assets sees only the packs this map includes, and list_asset_packs
only names the rest. Use this at preflight, or when list_assets comes up
thin, to choose packs by what they contain. Read-only; Dungeondraft need not
be running.
Terms match asset paths and the pack's own tags. match_mode: 'tokens'
(every word, any order) or 'substring'. Not synonyms: "mug" will not find
a tankard.
Per term, `matched_by_pack` counts every match in each pack, and `best`
holds the top paths (`limit` per term, 80 shared), grouped by pack.
`packs_found` says, for each pack with a match, whether this map includes
it and whether the running Dungeondraft has it loaded.
Packs whose authors opted out of third-party tools reading them are not
searched; they are listed under `not_searched`.
A path from a pack the map does not include cannot be placed here. To use
it: preview_assets to look, then prepare_map_with_packs(filename,
packs=[ids]), which keeps the map's current packs and adds these. A pack
Dungeondraft has not loaded cannot be included until it is.
packs: limit the search to these pack ids.
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": {
"searches": "<searches>"
},
"name": "search_pack_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| packs | No | ||
| category | No | Objects | |
| searches | Yes | 1 to 8 terms, e.g. ['pergola', 'well', 'hay bale']. | |
| match_mode | No | tokens |