list_documents
List cached D&D content documents from Open5e, D&D 5e API, and OrcBrew. See available books, supplements, and homebrew to filter your queries.
Instructions
List all available D&D content documents in the cache.
This tool queries the cache to discover which source documents are available across all data sources (Open5e API, D&D 5e API, OrcBrew imports). Use this to see which books, supplements, and homebrew content you have access to, then use the documents parameter in other tools to filter content.
IMPORTANT: This shows only documents currently in your cache. Run the build command to populate your cache with content from configured sources.
Examples: # List all available documents docs = await list_documents()
# List only Open5e documents
docs = await list_documents(source="open5e_v2")
# List only OrcBrew homebrew
docs = await list_documents(source="orcbrew")Args: source: Optional source filter. Valid values: - "open5e_v2": Open5e API documents (SRD, Kobold Press, etc.) - "orcbrew": Imported OrcBrew homebrew files - None (default): Show documents from all sources
Returns: List of document dictionaries, each containing: - document: Document name/identifier (use this in documents) - source_api: Which API/source this came from - entity_count: Total number of entities from this document - entity_types: Breakdown of entities by type (spells, creatures, etc.) - publisher: Publisher name (if available, Open5e only) - license: License type (if available, Open5e only)
Documents are sorted by entity count (highest first).Note:
This queries only the cache and does not make API calls. You must
populate your cache first. Run lorekeeper sync to populate your
cache from Open5e, and lorekeeper import <file> for OrcBrew content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |