dnd5e-compendium-filter-actors
Search COMPENDIUM packs for actors with D&D 5e structured filters (dnd5e worlds only). Compendium counterpart of actor-filter, which searches world actors; for a plain name lookup use compendium-search.
CRITICAL DATA FORMATS
CR is a NUMBER from the exact set 0, 0.125, 0.25, 0.5, 1..30 ("1/4" -> 0.25; 0.3 is rejected).
Sizes are SHORT codes: tiny, sm, med, lg, huge, grg. creatureType: the 14 lowercase SRD types, no subtypes ("demon" -> "fiend").
level applies only to type "character" (NPCs have CR). World-only filters (folder, hasPlayerOwner, currentHp) do not exist here.
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": ["npc"], "cr": { "min": 0.25, "max": 0.25 } } { "packIds": ["dnd5e.monsters"], "creatureType": ["dragon"], "size": ["huge", "grg"] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ac | No | Armor Class range. | |
| cr | No | Challenge Rating range (numbers from the valid CR set). NPCs only. | |
| name | No | Substring of document name, case-insensitive. | |
| size | No | Size short codes (OR). | |
| type | No | Actor types (OR). | |
| level | No | Character level range; type "character" only. | |
| limit | No | Page size 1..200, default 50. | |
| maxHp | No | Max HP range. | |
| offset | No | Skip first N results. | |
| packIds | No | Restrict to these Actor packs; omit for all. | |
| abilities | No | Per-ability score ranges. | |
| disposition | No | Prototype token disposition (OR). | |
| creatureType | No | SRD creature types (OR), NPCs only. No subtypes: "demon" -> "fiend". |