@@ -2710,6 +2710,22 @@ export const KnowledgeBase: ToolCatalogEntry = {
27102710 description : 'Document IDs (for batch delete_document)' ,
27112711 items : { type : 'string' } ,
27122712 } ,
2713+ documentTags : {
2714+ type : 'array' ,
2715+ description :
2716+ 'Tag values to persist on a document (optional for update_document). Use tag display names from list_tags.' ,
2717+ items : {
2718+ type : 'object' ,
2719+ properties : {
2720+ tagName : {
2721+ type : 'string' ,
2722+ description : 'Tag display name as returned by list_tags' ,
2723+ } ,
2724+ tagValue : { type : [ 'string' , 'number' , 'boolean' ] , description : 'Typed tag value' } ,
2725+ } ,
2726+ required : [ 'tagName' , 'tagValue' ] ,
2727+ } ,
2728+ } ,
27132729 enabled : {
27142730 type : 'boolean' ,
27152731 description : 'Enable/disable a document (optional for update_document)' ,
@@ -2765,6 +2781,42 @@ export const KnowledgeBase: ToolCatalogEntry = {
27652781 'Field type: text, number, date, boolean (optional for create_tag, defaults to text)' ,
27662782 enum : [ 'text' , 'number' , 'date' , 'boolean' ] ,
27672783 } ,
2784+ tagFilters : {
2785+ type : 'array' ,
2786+ description : 'Tag filters applied to the query. Use tag display names from list_tags.' ,
2787+ items : {
2788+ type : 'object' ,
2789+ properties : {
2790+ operator : {
2791+ type : 'string' ,
2792+ description : 'Comparison operator (defaults to eq)' ,
2793+ enum : [
2794+ 'eq' ,
2795+ 'neq' ,
2796+ 'contains' ,
2797+ 'not_contains' ,
2798+ 'starts_with' ,
2799+ 'ends_with' ,
2800+ 'gt' ,
2801+ 'gte' ,
2802+ 'lt' ,
2803+ 'lte' ,
2804+ 'between' ,
2805+ ] ,
2806+ } ,
2807+ tagName : {
2808+ type : 'string' ,
2809+ description : 'Tag display name as returned by list_tags' ,
2810+ } ,
2811+ tagValue : { type : [ 'string' , 'number' , 'boolean' ] , description : 'Typed tag value' } ,
2812+ valueTo : {
2813+ type : [ 'string' , 'number' ] ,
2814+ description : 'Upper bound required by the between operator' ,
2815+ } ,
2816+ } ,
2817+ required : [ 'tagName' , 'tagValue' ] ,
2818+ } ,
2819+ } ,
27682820 topK : {
27692821 type : 'number' ,
27702822 description : 'Number of results to return (1-50, default: 5)' ,
@@ -4075,6 +4127,42 @@ export const SearchKnowledgeBase: ToolCatalogEntry = {
40754127 description : 'Knowledge base ID (required for all operations)' ,
40764128 } ,
40774129 query : { type : 'string' , description : "Search query text (required for 'query')" } ,
4130+ tagFilters : {
4131+ type : 'array' ,
4132+ description : 'Tag filters applied to the query. Use tag display names from list_tags.' ,
4133+ items : {
4134+ type : 'object' ,
4135+ properties : {
4136+ operator : {
4137+ type : 'string' ,
4138+ description : 'Comparison operator (defaults to eq)' ,
4139+ enum : [
4140+ 'eq' ,
4141+ 'neq' ,
4142+ 'contains' ,
4143+ 'not_contains' ,
4144+ 'starts_with' ,
4145+ 'ends_with' ,
4146+ 'gt' ,
4147+ 'gte' ,
4148+ 'lt' ,
4149+ 'lte' ,
4150+ 'between' ,
4151+ ] ,
4152+ } ,
4153+ tagName : {
4154+ type : 'string' ,
4155+ description : 'Tag display name as returned by list_tags' ,
4156+ } ,
4157+ tagValue : { type : [ 'string' , 'number' , 'boolean' ] , description : 'Typed tag value' } ,
4158+ valueTo : {
4159+ type : [ 'string' , 'number' ] ,
4160+ description : 'Upper bound required by the between operator' ,
4161+ } ,
4162+ } ,
4163+ required : [ 'tagName' , 'tagValue' ] ,
4164+ } ,
4165+ } ,
40784166 topK : {
40794167 type : 'number' ,
40804168 description : 'Number of results to return (1-50, default: 5)' ,
0 commit comments