dnd5e-compendium-filter-items
Search COMPENDIUM packs for items with D&D 5e structured filters (dnd5e worlds only): gear, spells, feats, class features and other Item documents. Compendium counterpart of world-item-filter.
CRITICAL DATA FORMATS
rarity is camelCase: veryRare (not "very rare"). spellSchool is the full word (evocation, not "evo").
spellLevel 0..9 (0 = cantrip) only affects type "spell"; other types are silently excluded by it.
price in GP (denominations normalized), weight in lb, decimals allowed.
SEMANTICS: filters combine with AND, values inside one array with OR. Ranges are {min?, max?}, inclusive (min = max for exact). Documents lacking a filtered field are silently excluded. limit 1..200 (default 50), offset; the response has total and hasMore. Results are {name, uuid} entries: follow up with uuid-resolve, or compendium-browse with ids to batch-load. Requires bridge module 8.11.0+.
EXAMPLES { "type": ["spell"], "spellLevel": { "min": 0, "max": 0 }, "spellSchool": ["evocation", "illusion"] } { "requiresAttunement": true, "price": { "max": 5000 }, "rarity": ["rare", "veryRare"] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Substring of document name, case-insensitive. | |
| type | No | Item types (OR). | |
| limit | No | Page size 1..200, default 50. | |
| price | No | Price range in gp. | |
| offset | No | Skip first N results. | |
| rarity | No | Rarity (OR), camelCase: veryRare. | |
| weight | No | Weight range in lb. | |
| packIds | No | Restrict to these Item packs; omit for all. | |
| identified | No | Filter by the identified flag. | |
| spellLevel | No | Spell level 0..9 (0 = cantrip); spells only. | |
| isContainer | No | Only containers. | |
| spellSchool | No | Spell schools (OR), full words. | |
| hasActivities | No | Only items with usable activities. | |
| requiresAttunement | No | Only items that require attunement. |