compendium-page-search
Full-text search inside JournalEntry compendium packs — page NAMES and page CONTENT. The tool for rules/lore text ("what does grappled say?" → query "grappled", pageTypes ["rule"]; class write-ups, spell lists): compendium-search sees only document names. Requires bridge module 8.11.0+.
Each match carries the PAGE uuid — pass it to uuid-resolve for the full text. matchedIn tells what matched: name matches win (content not scanned, snippet null); content matches carry a ~200-char snippet. Query is a case-insensitive substring; packs are scanned in order until limit, results unsorted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max matches, default 25. Scanning stops once reached. | |
| query | Yes | Case-insensitive substring; page names and (by default) content | |
| packIds | No | JournalEntry packs; omit = all | |
| pageTypes | No | Page subtypes: ["rule"], ["spells"], ["class","subclass"]; omit = all | |
| searchContent | No | Default true. Set false to match page NAMES only — much cheaper; use it when the page title is known. |