list_knowledge_bases
List knowledge bases with metadata to map source names to knowledge_base_ids, using paging to handle thousands of KBs efficiently.
Instructions
List knowledge bases (KBs) - the metadata imported via Data Ingestion, one page at a time.
Each row links a KB to its source, so use this to go from a source name to a knowledge_base_id. status SUCCESS means metadata was crawled successfully.
Paged, and this is the big one: a deployment can hold thousands of KBs. Read total and
has_more, then pass page=1, page=2, ... to walk it. page_size is capped at 500 - asking
for more does not return more, and requesting the whole collection at once is what breaks the
client's 1 MB response limit. To find one specific KB, prefer paging until you match it over
trying to pull everything at once.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_knowledge_bases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| page_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||