Create Knowledge Category
create_kb_categoryCreate a new category in a knowledge base by providing a label and knowledge base sys_id. Optionally assign a parent category to create subcategories.
Instructions
Create a new category in a knowledge base. Requires a label and the knowledge base sys_id. Optionally set a parent category for subcategories.
IMPORTANT: This creates a new category on the instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| label | Yes | The display label for the new category. | |
| knowledge_base_sys_id | Yes | The sys_id of the knowledge base to create the category in. | |
| parent_category | No | Optional parent category sys_id for creating subcategories. | |
| active | No | Whether the category is active (default true). |