List Knowledge Bases
list_knowledge_basesList knowledge bases from a ServiceNow instance. Filter by active status or encoded query to identify available KBs for browsing articles and categories.
Instructions
List knowledge bases on a ServiceNow instance. Returns knowledge base records from the kb_knowledge_base table with optional filtering by active status and encoded query. Use this to discover available KBs before browsing articles or categories.
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 |
|---|---|---|---|
| limit | No | Maximum number of records to return (default 20). | |
| query | No | Optional encoded query to filter knowledge bases (e.g., "titleLIKEIT" to find KBs with "IT" in the title). | |
| active | No | Filter by active status. Omit to return all. | |
| offset | No | Number of records to skip for pagination (default 0). | |
| instance | No | The ServiceNow instance auth alias to use. This is the alias configured via `now-sdk auth --add` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. |