list_categories
Retrieve categories from ServiceNow knowledge bases with filtering options for knowledge base, parent category, active status, and search queries to organize content effectively.
Instructions
List categories in a knowledge base
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | Filter by active status | |
| knowledge_base | No | Filter by knowledge base ID | |
| limit | No | Maximum number of categories to return | |
| offset | No | Offset for pagination | |
| parent_category | No | Filter by parent category ID | |
| query | No | Search query for categories |
Input Schema (JSON Schema)
{
"properties": {
"active": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by active status",
"title": "Active"
},
"knowledge_base": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by knowledge base ID",
"title": "Knowledge Base"
},
"limit": {
"default": 10,
"description": "Maximum number of categories to return",
"title": "Limit",
"type": "integer"
},
"offset": {
"default": 0,
"description": "Offset for pagination",
"title": "Offset",
"type": "integer"
},
"parent_category": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by parent category ID",
"title": "Parent Category"
},
"query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Search query for categories",
"title": "Query"
}
},
"type": "object"
}