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).
World-only filters (folder, hasPlayerOwner, currentHp) do not exist here.
Filters combine with AND, values inside one array with OR; ranges {min?, max?} inclusive (min = max for exact). Documents lacking a filtered field are excluded. The response has total and hasMore. Results are {name, uuid}: uuid-resolve, or compendium-browse with ids to batch-load. Requires bridge module 8.11.0+.
EXAMPLES { "packIds": ["dnd5e.monsters"], "creatureType": ["dragon"], "cr": { "min": 5 }, "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". |