List Knowledge Bases
List available Memory Crystal knowledge bases.What it does
Retrieves all knowledge bases accessible to the current user, optionally filtered by active status or channel. Each knowledge base can be used as a scoped context for memory operations.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
includeInactive | boolean | No | Include inactive/archived knowledge bases (default: false) |
channel | string | No | Filter by channel (e.g., “slack”, “discord”, “email”) |
Returns
Returns a structured response containing:- knowledgeBases: Array of knowledge base objects with metadata
- id: Unique identifier for the knowledge base
- name: Human-readable name
- description: Brief description of the KB’s purpose
- status: “active” or “archived”
- channel: Channel type (if applicable)
- chunkCount: Number of indexed chunks
- createdAt: Creation timestamp
Examples
List all active knowledge bases
Include archived knowledge bases
Filter by channel
List all with archival status
When to use
- Discover available contexts — See what knowledge bases are available before using other KB tools
- Manage knowledge bases — Get a complete inventory of your knowledge bases
- Plan imports — Check what channels/sources are already indexed
- Audit storage — See chunk counts to understand what’s been imported
- Channel-specific queries — Know which KB ID to use for channel-filtered searches
Errors
| Error | Cause | Resolution |
|---|---|---|
| Failed to list knowledge bases | General server error or permission issue | Check your connection and API key; retry in a moment |
| Invalid channel parameter | Channel type not recognized | Use valid channel types (slack, discord, email, etc.) |
Notes
- Knowledge bases can be created via channel imports or manual uploads
- Chunk count indicates the volume of indexed content
- Inactive/archived knowledge bases are hidden by default to reduce clutter
- Channels filter works only on knowledge bases created from those sources
- Each knowledge base has a unique ID used by other KB tools (query, import, etc.)
- Knowledge bases are scoped to the current user or team depending on your setup
