---
title: "List Knowledge Bases"
description: "List knowledge bases in the workspace."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/kb/list"
---
# List Knowledge Bases

> List knowledge bases in the workspace.

<block-meta block="Yes" channels="Any" folder="kb" group="Knowledge Base" groupTo="/build/workflows/blocks/kb" icon="i-lucide-book-open" pipe="Value" scope="Any" tool="Yes" type="kb.list">



</block-meta>

**List Knowledge Bases** (canvas label **List KBs**) returns every [knowledge base](https://docs.vettero.com/data/knowledge-bases) in the workspace. There is nothing to configure.

## Configure

No settings. The dialog explains that the block lists all knowledge bases.

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the list is loaded
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is an object:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        knowledgeBases
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Stores in the workspace
    </td>
  </tr>
</tbody>
</table>

Each item includes:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Knowledge base id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        description
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Description when set
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        readonly
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Search only — no upsert or delete-all
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        strictMetadata
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Upserts must match defined meta fields
    </td>
  </tr>
</tbody>
</table>

## Use case

- Let an [agent](https://docs.vettero.com/build/agents) pick a store before [Query](https://docs.vettero.com/build/workflows/blocks/kb/query).
- Skip write steps when `readonly` is true.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
