pf2e-compendium-filter-actors
Search COMPENDIUM packs for actors with Pathfinder 2e structured filters (pf2e worlds only): bestiary browsing by level, traits, rarity, size, HP, AC.
CRITICAL DATA FORMATS
level is an INTEGER range; negative bounds are valid ({ "min": -1 }).
traits are ALL-OF (every listed trait must be present), an open set of lowercase slugs ("undead", "kobold").
rarity: common, uncommon, rare, unique (PF2e ladder). Sizes: tiny, sm, med, lg, huge, grg.
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+. Results carry level (null when absent), sorted by level then name.
EXAMPLES { "type": ["npc"], "traits": ["kobold"], "level": { "min": -1, "max": 1 } } { "rarity": ["unique"], "level": { "min": 15 } }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ac | No | Armor Class range. | |
| name | No | Substring of document name, case-insensitive. | |
| size | No | Size short codes (OR). | |
| type | No | PF2e actor types (OR). | |
| level | No | Creature level range; negative bounds are valid. | |
| limit | No | Page size 1..200, default 50. | |
| maxHp | No | Max HP range. | |
| offset | No | Skip first N results. | |
| rarity | No | Rarity (OR). | |
| traits | No | ALL-OF: every listed trait must be present. Lowercase slugs. | |
| packIds | No | Restrict to these Actor packs; omit for all. |