Skip to main content

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, scope, channel, or agent. Each knowledge base can be used as a scoped context for memory operations. In mixed private/shared setups, visibility is determined by:
  • authenticated user
  • agentId
  • channel
  • KB scope
  • KB peerScopePolicy

Parameters

Returns

Returns a structured response containing:
  • knowledgeBases: Array of knowledge base objects with metadata
Each knowledge base includes:
  • 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
Example response:

Examples

List all active knowledge bases

Returns all active knowledge bases you have access to.

Include archived knowledge bases

Returns both active and archived knowledge bases, useful for auditing or recovering archived content.

Filter by channel

Returns only knowledge bases created from Slack channel imports, helpful when managing multiple Slack workspaces.

List all with archival status

Returns all Discord knowledge bases, including archived ones.

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

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
  • Peer-capable KBs default to strict isolation; cross-chat/shared access on those agents requires peerScopePolicy: "permissive"
  • Empty results can mean the KB is inactive, scoped to another agent/channel, hidden by strict peer policy, or outside the caller’s project scope. It does not always mean the row does not exist.
  • sourceRole appears on KB metadata when available; use it to choose between canonical references, voice/style corpora, persona guardrails, and client context.