Category Collection Add
category_collection_addCreate a category with its directory and file patterns, or a collection grouping multiple categories, in the current project.
Instructions
Add a new category or collection to the current project.
Creates a category with directory and file patterns, or a collection grouping multiple categories. Category-specific fields (dir, patterns) and collection-specific fields (categories) are validated based on the type parameter.
Arguments
session_id: string | null
Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.
type (required): enum: 'category', 'collection'
Type of item to add
name (required): string
Name to create
description: string | null
Optional description
dir: string | null
Directory path (category only)
patterns: array[string] | null
File patterns (category only)
categories: array[string] | null
Category expressions (collection only)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"args": "<args>"
},
"name": "category_collection_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Arguments for category_collection_add tool. |