likec4 1.32.0 → 1.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15616,8 +15616,9 @@ type ProjectConfig = InferOutput<typeof ProjectConfig>;
15616
15616
  type ArrowType = 'crow' | 'diamond' | 'dot' | 'none' | 'normal' | 'odiamond' | 'odot' | 'onormal' | 'open' | 'vee';
15617
15617
  type Boolean = boolean;
15618
15618
  type BorderStyleValue = 'none' | LineOptions;
15619
+ type ColorLiteral = HexColor | RGBAColor;
15620
+ declare const ColorLiteral = "ColorLiteral";
15619
15621
  type CustomColorId = 'element' | 'model' | ArrowType | ElementShape | LineOptions | string;
15620
- type CustomColorValue = string;
15621
15622
  type DeploymentElement = DeployedInstance | DeploymentNode;
15622
15623
  declare const DeploymentElement = "DeploymentElement";
15623
15624
  type DeploymentNodeOrElementKind = DeploymentNodeKind | ElementKind;
@@ -16076,6 +16077,12 @@ interface GlobalStyleId extends AstNode {
16076
16077
  name: string;
16077
16078
  }
16078
16079
  declare const GlobalStyleId = "GlobalStyleId";
16080
+ interface HexColor extends AstNode {
16081
+ readonly $container: SpecificationColor | SpecificationTag;
16082
+ readonly $type: 'HexColor';
16083
+ hex: number | string;
16084
+ }
16085
+ declare const HexColor = "HexColor";
16079
16086
  interface IconProperty extends AstNode {
16080
16087
  readonly $container: CustomElementProperties | DeployedInstanceBody | DeploymentNodeBody | DeploymentViewRuleStyle | ElementBody | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
16081
16088
  readonly $type: 'IconProperty';
@@ -16301,6 +16308,15 @@ interface RelationStyleProperty extends AstNode {
16301
16308
  props: Array<RelationshipStyleProperty>;
16302
16309
  }
16303
16310
  declare const RelationStyleProperty = "RelationStyleProperty";
16311
+ interface RGBAColor extends AstNode {
16312
+ readonly $container: SpecificationColor | SpecificationTag;
16313
+ readonly $type: 'RGBAColor';
16314
+ alpha?: number | string;
16315
+ blue: number;
16316
+ green: number;
16317
+ red: number;
16318
+ }
16319
+ declare const RGBAColor = "RGBAColor";
16304
16320
  interface ShapeProperty extends AstNode {
16305
16321
  readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
16306
16322
  readonly $type: 'ShapeProperty';
@@ -16318,7 +16334,7 @@ declare const ShapeSizeProperty = "ShapeSizeProperty";
16318
16334
  interface SpecificationColor extends AstNode {
16319
16335
  readonly $container: SpecificationRule;
16320
16336
  readonly $type: 'SpecificationColor';
16321
- color: CustomColorValue;
16337
+ color: ColorLiteral;
16322
16338
  name: CustomColor;
16323
16339
  }
16324
16340
  declare const SpecificationColor = "SpecificationColor";
@@ -16373,7 +16389,7 @@ declare const SpecificationRule = "SpecificationRule";
16373
16389
  interface SpecificationTag extends AstNode {
16374
16390
  readonly $container: SpecificationRule;
16375
16391
  readonly $type: 'SpecificationTag';
16376
- color?: CustomColorValue;
16392
+ color?: ColorLiteral;
16377
16393
  tag: Tag;
16378
16394
  }
16379
16395
  declare const SpecificationTag = "SpecificationTag";
@@ -16551,6 +16567,7 @@ declare const WildcardExpression = "WildcardExpression";
16551
16567
  type LikeC4AstType = {
16552
16568
  ArrowProperty: ArrowProperty;
16553
16569
  BorderProperty: BorderProperty;
16570
+ ColorLiteral: ColorLiteral;
16554
16571
  ColorProperty: ColorProperty;
16555
16572
  CustomColor: CustomColor;
16556
16573
  CustomElementProperties: CustomElementProperties;
@@ -16612,6 +16629,7 @@ type LikeC4AstType = {
16612
16629
  GlobalStyleGroup: GlobalStyleGroup;
16613
16630
  GlobalStyleId: GlobalStyleId;
16614
16631
  Globals: Globals;
16632
+ HexColor: HexColor;
16615
16633
  IconProperty: IconProperty;
16616
16634
  Imported: Imported;
16617
16635
  ImportsFromPoject: ImportsFromPoject;
@@ -16637,6 +16655,7 @@ type LikeC4AstType = {
16637
16655
  OpacityProperty: OpacityProperty;
16638
16656
  OutgoingRelationExpr: OutgoingRelationExpr;
16639
16657
  PaddingSizeProperty: PaddingSizeProperty;
16658
+ RGBAColor: RGBAColor;
16640
16659
  Referenceable: Referenceable;
16641
16660
  Relation: Relation;
16642
16661
  RelationBody: RelationBody;
@@ -16703,7 +16722,7 @@ type LikeC4AstType = {
16703
16722
 
16704
16723
  type Guard<N extends AstNode> = (n: AstNode) => n is N;
16705
16724
  type Guarded<G> = G extends Guard<infer N> ? N : never;
16706
- declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | ElementRef | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | ImportsFromPoject | SpecificationRule | SpecificationTag;
16725
+ declare const isValidatableAstNode: (n: AstNode) => n is HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | ElementRef | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | SpecificationTag | ImportsFromPoject | SpecificationRule;
16707
16726
  type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
16708
16727
  declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
16709
16728
  isValid: (n: ValidatableAstNode) => boolean;
@@ -17173,6 +17192,7 @@ declare class BaseParser {
17173
17192
  convertLinks(source?: LinkProperty['$container']): c4.Link[] | undefined;
17174
17193
  parseLinks(source?: LinkProperty['$container']): c4.Link[] | undefined;
17175
17194
  parseIconProperty(prop: IconProperty | undefined): c4.IconUrl | undefined;
17195
+ parseColorLiteral(astNode: ColorLiteral): c4.ColorLiteral | undefined;
17176
17196
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17177
17197
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17178
17198
  }
@@ -17245,6 +17265,7 @@ declare const DocumentParserFromMixins: {
17245
17265
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17246
17266
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17247
17267
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17268
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17248
17269
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17249
17270
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17250
17271
  parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
@@ -17321,6 +17342,7 @@ declare const DocumentParserFromMixins: {
17321
17342
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17322
17343
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17323
17344
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17345
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17324
17346
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17325
17347
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17326
17348
  parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
@@ -17361,6 +17383,7 @@ declare const DocumentParserFromMixins: {
17361
17383
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17362
17384
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17363
17385
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17386
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17364
17387
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17365
17388
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17366
17389
  };
@@ -17413,6 +17436,7 @@ declare const DocumentParserFromMixins: {
17413
17436
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17414
17437
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17415
17438
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17439
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17416
17440
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17417
17441
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17418
17442
  };
@@ -17458,6 +17482,7 @@ declare const DocumentParserFromMixins: {
17458
17482
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17459
17483
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17460
17484
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17485
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17461
17486
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17462
17487
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17463
17488
  parseDeployment(): void;
@@ -17511,6 +17536,7 @@ declare const DocumentParserFromMixins: {
17511
17536
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17512
17537
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17513
17538
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17539
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17514
17540
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17515
17541
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17516
17542
  };
@@ -17557,6 +17583,7 @@ declare const DocumentParserFromMixins: {
17557
17583
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17558
17584
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17559
17585
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17586
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17560
17587
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17561
17588
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17562
17589
  };
@@ -17585,6 +17612,7 @@ declare const DocumentParserFromMixins: {
17585
17612
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17586
17613
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17587
17614
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17615
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17588
17616
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17589
17617
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17590
17618
  };
@@ -17626,6 +17654,7 @@ declare const DocumentParserFromMixins: {
17626
17654
  convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17627
17655
  parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
17628
17656
  parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
17657
+ parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
17629
17658
  parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
17630
17659
  parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
17631
17660
  };
@@ -18947,6 +18976,22 @@ declare enum ZodFirstPartyTypeKind {
18947
18976
  ZodReadonly = "ZodReadonly"
18948
18977
  }
18949
18978
 
18979
+ declare const RequestMetaSchema: ZodObject<{
18980
+ /**
18981
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
18982
+ */
18983
+ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
18984
+ }, "passthrough", ZodTypeAny, objectOutputType<{
18985
+ /**
18986
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
18987
+ */
18988
+ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
18989
+ }, ZodTypeAny, "passthrough">, objectInputType<{
18990
+ /**
18991
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
18992
+ */
18993
+ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
18994
+ }, ZodTypeAny, "passthrough">>;
18950
18995
  declare const RequestSchema: ZodObject<{
18951
18996
  method: ZodString;
18952
18997
  params: ZodOptional<ZodObject<{
@@ -19673,6 +19718,10 @@ declare const ProgressSchema: ZodObject<{
19673
19718
  * Total number of items to process (or total progress required), if known.
19674
19719
  */
19675
19720
  total: ZodOptional<ZodNumber>;
19721
+ /**
19722
+ * An optional message describing the current progress.
19723
+ */
19724
+ message: ZodOptional<ZodString>;
19676
19725
  }, "passthrough", ZodTypeAny, objectOutputType<{
19677
19726
  /**
19678
19727
  * The progress thus far. This should increase every time progress is made, even if the total is unknown.
@@ -19682,6 +19731,10 @@ declare const ProgressSchema: ZodObject<{
19682
19731
  * Total number of items to process (or total progress required), if known.
19683
19732
  */
19684
19733
  total: ZodOptional<ZodNumber>;
19734
+ /**
19735
+ * An optional message describing the current progress.
19736
+ */
19737
+ message: ZodOptional<ZodString>;
19685
19738
  }, ZodTypeAny, "passthrough">, objectInputType<{
19686
19739
  /**
19687
19740
  * The progress thus far. This should increase every time progress is made, even if the total is unknown.
@@ -19691,6 +19744,10 @@ declare const ProgressSchema: ZodObject<{
19691
19744
  * Total number of items to process (or total progress required), if known.
19692
19745
  */
19693
19746
  total: ZodOptional<ZodNumber>;
19747
+ /**
19748
+ * An optional message describing the current progress.
19749
+ */
19750
+ message: ZodOptional<ZodString>;
19694
19751
  }, ZodTypeAny, "passthrough">>;
19695
19752
  /**
19696
19753
  * A known resource that the server is capable of reading.
@@ -23454,6 +23511,131 @@ declare const GetPromptResultSchema: ZodObject<objectUtil.extendShape<{
23454
23511
  }, ZodTypeAny, "passthrough">>]>;
23455
23512
  }, ZodTypeAny, "passthrough">>, "many">;
23456
23513
  }>, ZodTypeAny, "passthrough">>;
23514
+ /**
23515
+ * Additional properties describing a Tool to clients.
23516
+ *
23517
+ * NOTE: all properties in ToolAnnotations are **hints**.
23518
+ * They are not guaranteed to provide a faithful description of
23519
+ * tool behavior (including descriptive properties like `title`).
23520
+ *
23521
+ * Clients should never make tool use decisions based on ToolAnnotations
23522
+ * received from untrusted servers.
23523
+ */
23524
+ declare const ToolAnnotationsSchema: ZodObject<{
23525
+ /**
23526
+ * A human-readable title for the tool.
23527
+ */
23528
+ title: ZodOptional<ZodString>;
23529
+ /**
23530
+ * If true, the tool does not modify its environment.
23531
+ *
23532
+ * Default: false
23533
+ */
23534
+ readOnlyHint: ZodOptional<ZodBoolean>;
23535
+ /**
23536
+ * If true, the tool may perform destructive updates to its environment.
23537
+ * If false, the tool performs only additive updates.
23538
+ *
23539
+ * (This property is meaningful only when `readOnlyHint == false`)
23540
+ *
23541
+ * Default: true
23542
+ */
23543
+ destructiveHint: ZodOptional<ZodBoolean>;
23544
+ /**
23545
+ * If true, calling the tool repeatedly with the same arguments
23546
+ * will have no additional effect on the its environment.
23547
+ *
23548
+ * (This property is meaningful only when `readOnlyHint == false`)
23549
+ *
23550
+ * Default: false
23551
+ */
23552
+ idempotentHint: ZodOptional<ZodBoolean>;
23553
+ /**
23554
+ * If true, this tool may interact with an "open world" of external
23555
+ * entities. If false, the tool's domain of interaction is closed.
23556
+ * For example, the world of a web search tool is open, whereas that
23557
+ * of a memory tool is not.
23558
+ *
23559
+ * Default: true
23560
+ */
23561
+ openWorldHint: ZodOptional<ZodBoolean>;
23562
+ }, "passthrough", ZodTypeAny, objectOutputType<{
23563
+ /**
23564
+ * A human-readable title for the tool.
23565
+ */
23566
+ title: ZodOptional<ZodString>;
23567
+ /**
23568
+ * If true, the tool does not modify its environment.
23569
+ *
23570
+ * Default: false
23571
+ */
23572
+ readOnlyHint: ZodOptional<ZodBoolean>;
23573
+ /**
23574
+ * If true, the tool may perform destructive updates to its environment.
23575
+ * If false, the tool performs only additive updates.
23576
+ *
23577
+ * (This property is meaningful only when `readOnlyHint == false`)
23578
+ *
23579
+ * Default: true
23580
+ */
23581
+ destructiveHint: ZodOptional<ZodBoolean>;
23582
+ /**
23583
+ * If true, calling the tool repeatedly with the same arguments
23584
+ * will have no additional effect on the its environment.
23585
+ *
23586
+ * (This property is meaningful only when `readOnlyHint == false`)
23587
+ *
23588
+ * Default: false
23589
+ */
23590
+ idempotentHint: ZodOptional<ZodBoolean>;
23591
+ /**
23592
+ * If true, this tool may interact with an "open world" of external
23593
+ * entities. If false, the tool's domain of interaction is closed.
23594
+ * For example, the world of a web search tool is open, whereas that
23595
+ * of a memory tool is not.
23596
+ *
23597
+ * Default: true
23598
+ */
23599
+ openWorldHint: ZodOptional<ZodBoolean>;
23600
+ }, ZodTypeAny, "passthrough">, objectInputType<{
23601
+ /**
23602
+ * A human-readable title for the tool.
23603
+ */
23604
+ title: ZodOptional<ZodString>;
23605
+ /**
23606
+ * If true, the tool does not modify its environment.
23607
+ *
23608
+ * Default: false
23609
+ */
23610
+ readOnlyHint: ZodOptional<ZodBoolean>;
23611
+ /**
23612
+ * If true, the tool may perform destructive updates to its environment.
23613
+ * If false, the tool performs only additive updates.
23614
+ *
23615
+ * (This property is meaningful only when `readOnlyHint == false`)
23616
+ *
23617
+ * Default: true
23618
+ */
23619
+ destructiveHint: ZodOptional<ZodBoolean>;
23620
+ /**
23621
+ * If true, calling the tool repeatedly with the same arguments
23622
+ * will have no additional effect on the its environment.
23623
+ *
23624
+ * (This property is meaningful only when `readOnlyHint == false`)
23625
+ *
23626
+ * Default: false
23627
+ */
23628
+ idempotentHint: ZodOptional<ZodBoolean>;
23629
+ /**
23630
+ * If true, this tool may interact with an "open world" of external
23631
+ * entities. If false, the tool's domain of interaction is closed.
23632
+ * For example, the world of a web search tool is open, whereas that
23633
+ * of a memory tool is not.
23634
+ *
23635
+ * Default: true
23636
+ */
23637
+ openWorldHint: ZodOptional<ZodBoolean>;
23638
+ }, ZodTypeAny, "passthrough">>;
23457
23639
  /**
23458
23640
  * The server's response to a tool call.
23459
23641
  */
@@ -23463,7 +23645,13 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
23463
23645
  */
23464
23646
  _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
23465
23647
  }, {
23466
- content: ZodArray<ZodUnion<[ZodObject<{
23648
+ /**
23649
+ * A list of content objects that represent the result of the tool call.
23650
+ *
23651
+ * If the Tool does not define an outputSchema, this field MUST be present in the result.
23652
+ * For backwards compatibility, this field is always present, but it may be empty.
23653
+ */
23654
+ content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
23467
23655
  type: ZodLiteral<"text">;
23468
23656
  /**
23469
23657
  * The text content of the message.
@@ -23802,15 +23990,41 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
23802
23990
  */
23803
23991
  blob: ZodString;
23804
23992
  }>, ZodTypeAny, "passthrough">>]>;
23805
- }, ZodTypeAny, "passthrough">>]>, "many">;
23806
- isError: ZodOptional<ZodDefault<ZodBoolean>>;
23993
+ }, ZodTypeAny, "passthrough">>]>, "many">>;
23994
+ /**
23995
+ * An object containing structured tool output.
23996
+ *
23997
+ * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
23998
+ */
23999
+ structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
24000
+ /**
24001
+ * Whether the tool call ended in an error.
24002
+ *
24003
+ * If not set, this is assumed to be false (the call was successful).
24004
+ *
24005
+ * Any errors that originate from the tool SHOULD be reported inside the result
24006
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
24007
+ * response. Otherwise, the LLM would not be able to see that an error occurred
24008
+ * and self-correct.
24009
+ *
24010
+ * However, any errors in _finding_ the tool, an error indicating that the
24011
+ * server does not support tool calls, or any other exceptional conditions,
24012
+ * should be reported as an MCP error response.
24013
+ */
24014
+ isError: ZodOptional<ZodBoolean>;
23807
24015
  }>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<{
23808
24016
  /**
23809
24017
  * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
23810
24018
  */
23811
24019
  _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
23812
24020
  }, {
23813
- content: ZodArray<ZodUnion<[ZodObject<{
24021
+ /**
24022
+ * A list of content objects that represent the result of the tool call.
24023
+ *
24024
+ * If the Tool does not define an outputSchema, this field MUST be present in the result.
24025
+ * For backwards compatibility, this field is always present, but it may be empty.
24026
+ */
24027
+ content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
23814
24028
  type: ZodLiteral<"text">;
23815
24029
  /**
23816
24030
  * The text content of the message.
@@ -24149,15 +24363,41 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
24149
24363
  */
24150
24364
  blob: ZodString;
24151
24365
  }>, ZodTypeAny, "passthrough">>]>;
24152
- }, ZodTypeAny, "passthrough">>]>, "many">;
24153
- isError: ZodOptional<ZodDefault<ZodBoolean>>;
24366
+ }, ZodTypeAny, "passthrough">>]>, "many">>;
24367
+ /**
24368
+ * An object containing structured tool output.
24369
+ *
24370
+ * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
24371
+ */
24372
+ structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
24373
+ /**
24374
+ * Whether the tool call ended in an error.
24375
+ *
24376
+ * If not set, this is assumed to be false (the call was successful).
24377
+ *
24378
+ * Any errors that originate from the tool SHOULD be reported inside the result
24379
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
24380
+ * response. Otherwise, the LLM would not be able to see that an error occurred
24381
+ * and self-correct.
24382
+ *
24383
+ * However, any errors in _finding_ the tool, an error indicating that the
24384
+ * server does not support tool calls, or any other exceptional conditions,
24385
+ * should be reported as an MCP error response.
24386
+ */
24387
+ isError: ZodOptional<ZodBoolean>;
24154
24388
  }>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape<{
24155
24389
  /**
24156
24390
  * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
24157
24391
  */
24158
24392
  _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
24159
24393
  }, {
24160
- content: ZodArray<ZodUnion<[ZodObject<{
24394
+ /**
24395
+ * A list of content objects that represent the result of the tool call.
24396
+ *
24397
+ * If the Tool does not define an outputSchema, this field MUST be present in the result.
24398
+ * For backwards compatibility, this field is always present, but it may be empty.
24399
+ */
24400
+ content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
24161
24401
  type: ZodLiteral<"text">;
24162
24402
  /**
24163
24403
  * The text content of the message.
@@ -24496,8 +24736,28 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
24496
24736
  */
24497
24737
  blob: ZodString;
24498
24738
  }>, ZodTypeAny, "passthrough">>]>;
24499
- }, ZodTypeAny, "passthrough">>]>, "many">;
24500
- isError: ZodOptional<ZodDefault<ZodBoolean>>;
24739
+ }, ZodTypeAny, "passthrough">>]>, "many">>;
24740
+ /**
24741
+ * An object containing structured tool output.
24742
+ *
24743
+ * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
24744
+ */
24745
+ structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
24746
+ /**
24747
+ * Whether the tool call ended in an error.
24748
+ *
24749
+ * If not set, this is assumed to be false (the call was successful).
24750
+ *
24751
+ * Any errors that originate from the tool SHOULD be reported inside the result
24752
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
24753
+ * response. Otherwise, the LLM would not be able to see that an error occurred
24754
+ * and self-correct.
24755
+ *
24756
+ * However, any errors in _finding_ the tool, an error indicating that the
24757
+ * server does not support tool calls, or any other exceptional conditions,
24758
+ * should be reported as an MCP error response.
24759
+ */
24760
+ isError: ZodOptional<ZodBoolean>;
24501
24761
  }>, ZodTypeAny, "passthrough">>;
24502
24762
  /**
24503
24763
  * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
@@ -27942,6 +28202,10 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
27942
28202
  * Total number of items to process (or total progress required), if known.
27943
28203
  */
27944
28204
  total: ZodOptional<ZodNumber>;
28205
+ /**
28206
+ * An optional message describing the current progress.
28207
+ */
28208
+ message: ZodOptional<ZodString>;
27945
28209
  }>, {
27946
28210
  /**
27947
28211
  * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
@@ -27961,6 +28225,10 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
27961
28225
  * Total number of items to process (or total progress required), if known.
27962
28226
  */
27963
28227
  total: ZodOptional<ZodNumber>;
28228
+ /**
28229
+ * An optional message describing the current progress.
28230
+ */
28231
+ message: ZodOptional<ZodString>;
27964
28232
  }>, {
27965
28233
  /**
27966
28234
  * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
@@ -27980,6 +28248,10 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
27980
28248
  * Total number of items to process (or total progress required), if known.
27981
28249
  */
27982
28250
  total: ZodOptional<ZodNumber>;
28251
+ /**
28252
+ * An optional message describing the current progress.
28253
+ */
28254
+ message: ZodOptional<ZodString>;
27983
28255
  }>, {
27984
28256
  /**
27985
28257
  * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
@@ -27990,6 +28262,7 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
27990
28262
  params: {
27991
28263
  progressToken: string | number;
27992
28264
  progress: number;
28265
+ message?: string | undefined;
27993
28266
  _meta?: objectOutputType<{}, ZodTypeAny, "passthrough"> | undefined;
27994
28267
  total?: number | undefined;
27995
28268
  } & {
@@ -28000,6 +28273,7 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
28000
28273
  params: {
28001
28274
  progressToken: string | number;
28002
28275
  progress: number;
28276
+ message?: string | undefined;
28003
28277
  _meta?: objectInputType<{}, ZodTypeAny, "passthrough"> | undefined;
28004
28278
  total?: number | undefined;
28005
28279
  } & {
@@ -33596,7 +33870,13 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
33596
33870
  */
33597
33871
  _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
33598
33872
  }, {
33599
- content: ZodArray<ZodUnion<[ZodObject<{
33873
+ /**
33874
+ * A list of content objects that represent the result of the tool call.
33875
+ *
33876
+ * If the Tool does not define an outputSchema, this field MUST be present in the result.
33877
+ * For backwards compatibility, this field is always present, but it may be empty.
33878
+ */
33879
+ content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
33600
33880
  type: ZodLiteral<"text">;
33601
33881
  /**
33602
33882
  * The text content of the message.
@@ -33935,15 +34215,41 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
33935
34215
  */
33936
34216
  blob: ZodString;
33937
34217
  }>, ZodTypeAny, "passthrough">>]>;
33938
- }, ZodTypeAny, "passthrough">>]>, "many">;
33939
- isError: ZodOptional<ZodDefault<ZodBoolean>>;
34218
+ }, ZodTypeAny, "passthrough">>]>, "many">>;
34219
+ /**
34220
+ * An object containing structured tool output.
34221
+ *
34222
+ * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
34223
+ */
34224
+ structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34225
+ /**
34226
+ * Whether the tool call ended in an error.
34227
+ *
34228
+ * If not set, this is assumed to be false (the call was successful).
34229
+ *
34230
+ * Any errors that originate from the tool SHOULD be reported inside the result
34231
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
34232
+ * response. Otherwise, the LLM would not be able to see that an error occurred
34233
+ * and self-correct.
34234
+ *
34235
+ * However, any errors in _finding_ the tool, an error indicating that the
34236
+ * server does not support tool calls, or any other exceptional conditions,
34237
+ * should be reported as an MCP error response.
34238
+ */
34239
+ isError: ZodOptional<ZodBoolean>;
33940
34240
  }>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<{
33941
34241
  /**
33942
34242
  * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
33943
34243
  */
33944
34244
  _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
33945
34245
  }, {
33946
- content: ZodArray<ZodUnion<[ZodObject<{
34246
+ /**
34247
+ * A list of content objects that represent the result of the tool call.
34248
+ *
34249
+ * If the Tool does not define an outputSchema, this field MUST be present in the result.
34250
+ * For backwards compatibility, this field is always present, but it may be empty.
34251
+ */
34252
+ content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
33947
34253
  type: ZodLiteral<"text">;
33948
34254
  /**
33949
34255
  * The text content of the message.
@@ -34282,15 +34588,41 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34282
34588
  */
34283
34589
  blob: ZodString;
34284
34590
  }>, ZodTypeAny, "passthrough">>]>;
34285
- }, ZodTypeAny, "passthrough">>]>, "many">;
34286
- isError: ZodOptional<ZodDefault<ZodBoolean>>;
34591
+ }, ZodTypeAny, "passthrough">>]>, "many">>;
34592
+ /**
34593
+ * An object containing structured tool output.
34594
+ *
34595
+ * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
34596
+ */
34597
+ structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34598
+ /**
34599
+ * Whether the tool call ended in an error.
34600
+ *
34601
+ * If not set, this is assumed to be false (the call was successful).
34602
+ *
34603
+ * Any errors that originate from the tool SHOULD be reported inside the result
34604
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
34605
+ * response. Otherwise, the LLM would not be able to see that an error occurred
34606
+ * and self-correct.
34607
+ *
34608
+ * However, any errors in _finding_ the tool, an error indicating that the
34609
+ * server does not support tool calls, or any other exceptional conditions,
34610
+ * should be reported as an MCP error response.
34611
+ */
34612
+ isError: ZodOptional<ZodBoolean>;
34287
34613
  }>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape<{
34288
34614
  /**
34289
34615
  * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
34290
34616
  */
34291
34617
  _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34292
34618
  }, {
34293
- content: ZodArray<ZodUnion<[ZodObject<{
34619
+ /**
34620
+ * A list of content objects that represent the result of the tool call.
34621
+ *
34622
+ * If the Tool does not define an outputSchema, this field MUST be present in the result.
34623
+ * For backwards compatibility, this field is always present, but it may be empty.
34624
+ */
34625
+ content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
34294
34626
  type: ZodLiteral<"text">;
34295
34627
  /**
34296
34628
  * The text content of the message.
@@ -34629,8 +34961,28 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34629
34961
  */
34630
34962
  blob: ZodString;
34631
34963
  }>, ZodTypeAny, "passthrough">>]>;
34632
- }, ZodTypeAny, "passthrough">>]>, "many">;
34633
- isError: ZodOptional<ZodDefault<ZodBoolean>>;
34964
+ }, ZodTypeAny, "passthrough">>]>, "many">>;
34965
+ /**
34966
+ * An object containing structured tool output.
34967
+ *
34968
+ * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
34969
+ */
34970
+ structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34971
+ /**
34972
+ * Whether the tool call ended in an error.
34973
+ *
34974
+ * If not set, this is assumed to be false (the call was successful).
34975
+ *
34976
+ * Any errors that originate from the tool SHOULD be reported inside the result
34977
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
34978
+ * response. Otherwise, the LLM would not be able to see that an error occurred
34979
+ * and self-correct.
34980
+ *
34981
+ * However, any errors in _finding_ the tool, an error indicating that the
34982
+ * server does not support tool calls, or any other exceptional conditions,
34983
+ * should be reported as an MCP error response.
34984
+ */
34985
+ isError: ZodOptional<ZodBoolean>;
34634
34986
  }>, ZodTypeAny, "passthrough">>, ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
34635
34987
  /**
34636
34988
  * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
@@ -34658,36 +35010,152 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34658
35010
  inputSchema: ZodObject<{
34659
35011
  type: ZodLiteral<"object">;
34660
35012
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35013
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34661
35014
  }, "passthrough", ZodTypeAny, objectOutputType<{
34662
35015
  type: ZodLiteral<"object">;
34663
35016
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35017
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34664
35018
  }, ZodTypeAny, "passthrough">, objectInputType<{
34665
35019
  type: ZodLiteral<"object">;
34666
35020
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35021
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34667
35022
  }, ZodTypeAny, "passthrough">>;
34668
- }, "passthrough", ZodTypeAny, objectOutputType<{
34669
- /**
34670
- * The name of the tool.
34671
- */
34672
- name: ZodString;
34673
- /**
34674
- * A human-readable description of the tool.
34675
- */
34676
- description: ZodOptional<ZodString>;
34677
35023
  /**
34678
- * A JSON Schema object defining the expected parameters for the tool.
35024
+ * An optional JSON Schema object defining the structure of the tool's output returned in
35025
+ * the structuredContent field of a CallToolResult.
34679
35026
  */
34680
- inputSchema: ZodObject<{
35027
+ outputSchema: ZodOptional<ZodObject<{
34681
35028
  type: ZodLiteral<"object">;
34682
35029
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35030
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34683
35031
  }, "passthrough", ZodTypeAny, objectOutputType<{
34684
35032
  type: ZodLiteral<"object">;
34685
35033
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35034
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34686
35035
  }, ZodTypeAny, "passthrough">, objectInputType<{
34687
35036
  type: ZodLiteral<"object">;
34688
35037
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34689
- }, ZodTypeAny, "passthrough">>;
34690
- }, ZodTypeAny, "passthrough">, objectInputType<{
35038
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35039
+ }, ZodTypeAny, "passthrough">>>;
35040
+ /**
35041
+ * Optional additional tool information.
35042
+ */
35043
+ annotations: ZodOptional<ZodObject<{
35044
+ /**
35045
+ * A human-readable title for the tool.
35046
+ */
35047
+ title: ZodOptional<ZodString>;
35048
+ /**
35049
+ * If true, the tool does not modify its environment.
35050
+ *
35051
+ * Default: false
35052
+ */
35053
+ readOnlyHint: ZodOptional<ZodBoolean>;
35054
+ /**
35055
+ * If true, the tool may perform destructive updates to its environment.
35056
+ * If false, the tool performs only additive updates.
35057
+ *
35058
+ * (This property is meaningful only when `readOnlyHint == false`)
35059
+ *
35060
+ * Default: true
35061
+ */
35062
+ destructiveHint: ZodOptional<ZodBoolean>;
35063
+ /**
35064
+ * If true, calling the tool repeatedly with the same arguments
35065
+ * will have no additional effect on the its environment.
35066
+ *
35067
+ * (This property is meaningful only when `readOnlyHint == false`)
35068
+ *
35069
+ * Default: false
35070
+ */
35071
+ idempotentHint: ZodOptional<ZodBoolean>;
35072
+ /**
35073
+ * If true, this tool may interact with an "open world" of external
35074
+ * entities. If false, the tool's domain of interaction is closed.
35075
+ * For example, the world of a web search tool is open, whereas that
35076
+ * of a memory tool is not.
35077
+ *
35078
+ * Default: true
35079
+ */
35080
+ openWorldHint: ZodOptional<ZodBoolean>;
35081
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35082
+ /**
35083
+ * A human-readable title for the tool.
35084
+ */
35085
+ title: ZodOptional<ZodString>;
35086
+ /**
35087
+ * If true, the tool does not modify its environment.
35088
+ *
35089
+ * Default: false
35090
+ */
35091
+ readOnlyHint: ZodOptional<ZodBoolean>;
35092
+ /**
35093
+ * If true, the tool may perform destructive updates to its environment.
35094
+ * If false, the tool performs only additive updates.
35095
+ *
35096
+ * (This property is meaningful only when `readOnlyHint == false`)
35097
+ *
35098
+ * Default: true
35099
+ */
35100
+ destructiveHint: ZodOptional<ZodBoolean>;
35101
+ /**
35102
+ * If true, calling the tool repeatedly with the same arguments
35103
+ * will have no additional effect on the its environment.
35104
+ *
35105
+ * (This property is meaningful only when `readOnlyHint == false`)
35106
+ *
35107
+ * Default: false
35108
+ */
35109
+ idempotentHint: ZodOptional<ZodBoolean>;
35110
+ /**
35111
+ * If true, this tool may interact with an "open world" of external
35112
+ * entities. If false, the tool's domain of interaction is closed.
35113
+ * For example, the world of a web search tool is open, whereas that
35114
+ * of a memory tool is not.
35115
+ *
35116
+ * Default: true
35117
+ */
35118
+ openWorldHint: ZodOptional<ZodBoolean>;
35119
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35120
+ /**
35121
+ * A human-readable title for the tool.
35122
+ */
35123
+ title: ZodOptional<ZodString>;
35124
+ /**
35125
+ * If true, the tool does not modify its environment.
35126
+ *
35127
+ * Default: false
35128
+ */
35129
+ readOnlyHint: ZodOptional<ZodBoolean>;
35130
+ /**
35131
+ * If true, the tool may perform destructive updates to its environment.
35132
+ * If false, the tool performs only additive updates.
35133
+ *
35134
+ * (This property is meaningful only when `readOnlyHint == false`)
35135
+ *
35136
+ * Default: true
35137
+ */
35138
+ destructiveHint: ZodOptional<ZodBoolean>;
35139
+ /**
35140
+ * If true, calling the tool repeatedly with the same arguments
35141
+ * will have no additional effect on the its environment.
35142
+ *
35143
+ * (This property is meaningful only when `readOnlyHint == false`)
35144
+ *
35145
+ * Default: false
35146
+ */
35147
+ idempotentHint: ZodOptional<ZodBoolean>;
35148
+ /**
35149
+ * If true, this tool may interact with an "open world" of external
35150
+ * entities. If false, the tool's domain of interaction is closed.
35151
+ * For example, the world of a web search tool is open, whereas that
35152
+ * of a memory tool is not.
35153
+ *
35154
+ * Default: true
35155
+ */
35156
+ openWorldHint: ZodOptional<ZodBoolean>;
35157
+ }, ZodTypeAny, "passthrough">>>;
35158
+ }, "passthrough", ZodTypeAny, objectOutputType<{
34691
35159
  /**
34692
35160
  * The name of the tool.
34693
35161
  */
@@ -34702,70 +35170,644 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34702
35170
  inputSchema: ZodObject<{
34703
35171
  type: ZodLiteral<"object">;
34704
35172
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35173
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34705
35174
  }, "passthrough", ZodTypeAny, objectOutputType<{
34706
35175
  type: ZodLiteral<"object">;
34707
35176
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35177
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34708
35178
  }, ZodTypeAny, "passthrough">, objectInputType<{
34709
35179
  type: ZodLiteral<"object">;
34710
35180
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35181
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34711
35182
  }, ZodTypeAny, "passthrough">>;
34712
- }, ZodTypeAny, "passthrough">>, "many">;
34713
- }>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<objectUtil.extendShape<{
34714
- /**
34715
- * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
34716
- */
34717
- _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34718
- }, {
34719
- /**
34720
- * An opaque token representing the pagination position after the last returned result.
34721
- * If present, there may be more results available.
34722
- */
34723
- nextCursor: ZodOptional<ZodString>;
34724
- }>, {
34725
- tools: ZodArray<ZodObject<{
34726
- /**
34727
- * The name of the tool.
34728
- */
34729
- name: ZodString;
34730
- /**
34731
- * A human-readable description of the tool.
34732
- */
34733
- description: ZodOptional<ZodString>;
34734
35183
  /**
34735
- * A JSON Schema object defining the expected parameters for the tool.
35184
+ * An optional JSON Schema object defining the structure of the tool's output returned in
35185
+ * the structuredContent field of a CallToolResult.
34736
35186
  */
34737
- inputSchema: ZodObject<{
35187
+ outputSchema: ZodOptional<ZodObject<{
34738
35188
  type: ZodLiteral<"object">;
34739
35189
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35190
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34740
35191
  }, "passthrough", ZodTypeAny, objectOutputType<{
34741
35192
  type: ZodLiteral<"object">;
34742
35193
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35194
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34743
35195
  }, ZodTypeAny, "passthrough">, objectInputType<{
34744
35196
  type: ZodLiteral<"object">;
34745
35197
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34746
- }, ZodTypeAny, "passthrough">>;
34747
- }, "passthrough", ZodTypeAny, objectOutputType<{
34748
- /**
34749
- * The name of the tool.
34750
- */
34751
- name: ZodString;
34752
- /**
34753
- * A human-readable description of the tool.
34754
- */
34755
- description: ZodOptional<ZodString>;
35198
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35199
+ }, ZodTypeAny, "passthrough">>>;
34756
35200
  /**
34757
- * A JSON Schema object defining the expected parameters for the tool.
35201
+ * Optional additional tool information.
34758
35202
  */
34759
- inputSchema: ZodObject<{
35203
+ annotations: ZodOptional<ZodObject<{
35204
+ /**
35205
+ * A human-readable title for the tool.
35206
+ */
35207
+ title: ZodOptional<ZodString>;
35208
+ /**
35209
+ * If true, the tool does not modify its environment.
35210
+ *
35211
+ * Default: false
35212
+ */
35213
+ readOnlyHint: ZodOptional<ZodBoolean>;
35214
+ /**
35215
+ * If true, the tool may perform destructive updates to its environment.
35216
+ * If false, the tool performs only additive updates.
35217
+ *
35218
+ * (This property is meaningful only when `readOnlyHint == false`)
35219
+ *
35220
+ * Default: true
35221
+ */
35222
+ destructiveHint: ZodOptional<ZodBoolean>;
35223
+ /**
35224
+ * If true, calling the tool repeatedly with the same arguments
35225
+ * will have no additional effect on the its environment.
35226
+ *
35227
+ * (This property is meaningful only when `readOnlyHint == false`)
35228
+ *
35229
+ * Default: false
35230
+ */
35231
+ idempotentHint: ZodOptional<ZodBoolean>;
35232
+ /**
35233
+ * If true, this tool may interact with an "open world" of external
35234
+ * entities. If false, the tool's domain of interaction is closed.
35235
+ * For example, the world of a web search tool is open, whereas that
35236
+ * of a memory tool is not.
35237
+ *
35238
+ * Default: true
35239
+ */
35240
+ openWorldHint: ZodOptional<ZodBoolean>;
35241
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35242
+ /**
35243
+ * A human-readable title for the tool.
35244
+ */
35245
+ title: ZodOptional<ZodString>;
35246
+ /**
35247
+ * If true, the tool does not modify its environment.
35248
+ *
35249
+ * Default: false
35250
+ */
35251
+ readOnlyHint: ZodOptional<ZodBoolean>;
35252
+ /**
35253
+ * If true, the tool may perform destructive updates to its environment.
35254
+ * If false, the tool performs only additive updates.
35255
+ *
35256
+ * (This property is meaningful only when `readOnlyHint == false`)
35257
+ *
35258
+ * Default: true
35259
+ */
35260
+ destructiveHint: ZodOptional<ZodBoolean>;
35261
+ /**
35262
+ * If true, calling the tool repeatedly with the same arguments
35263
+ * will have no additional effect on the its environment.
35264
+ *
35265
+ * (This property is meaningful only when `readOnlyHint == false`)
35266
+ *
35267
+ * Default: false
35268
+ */
35269
+ idempotentHint: ZodOptional<ZodBoolean>;
35270
+ /**
35271
+ * If true, this tool may interact with an "open world" of external
35272
+ * entities. If false, the tool's domain of interaction is closed.
35273
+ * For example, the world of a web search tool is open, whereas that
35274
+ * of a memory tool is not.
35275
+ *
35276
+ * Default: true
35277
+ */
35278
+ openWorldHint: ZodOptional<ZodBoolean>;
35279
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35280
+ /**
35281
+ * A human-readable title for the tool.
35282
+ */
35283
+ title: ZodOptional<ZodString>;
35284
+ /**
35285
+ * If true, the tool does not modify its environment.
35286
+ *
35287
+ * Default: false
35288
+ */
35289
+ readOnlyHint: ZodOptional<ZodBoolean>;
35290
+ /**
35291
+ * If true, the tool may perform destructive updates to its environment.
35292
+ * If false, the tool performs only additive updates.
35293
+ *
35294
+ * (This property is meaningful only when `readOnlyHint == false`)
35295
+ *
35296
+ * Default: true
35297
+ */
35298
+ destructiveHint: ZodOptional<ZodBoolean>;
35299
+ /**
35300
+ * If true, calling the tool repeatedly with the same arguments
35301
+ * will have no additional effect on the its environment.
35302
+ *
35303
+ * (This property is meaningful only when `readOnlyHint == false`)
35304
+ *
35305
+ * Default: false
35306
+ */
35307
+ idempotentHint: ZodOptional<ZodBoolean>;
35308
+ /**
35309
+ * If true, this tool may interact with an "open world" of external
35310
+ * entities. If false, the tool's domain of interaction is closed.
35311
+ * For example, the world of a web search tool is open, whereas that
35312
+ * of a memory tool is not.
35313
+ *
35314
+ * Default: true
35315
+ */
35316
+ openWorldHint: ZodOptional<ZodBoolean>;
35317
+ }, ZodTypeAny, "passthrough">>>;
35318
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35319
+ /**
35320
+ * The name of the tool.
35321
+ */
35322
+ name: ZodString;
35323
+ /**
35324
+ * A human-readable description of the tool.
35325
+ */
35326
+ description: ZodOptional<ZodString>;
35327
+ /**
35328
+ * A JSON Schema object defining the expected parameters for the tool.
35329
+ */
35330
+ inputSchema: ZodObject<{
34760
35331
  type: ZodLiteral<"object">;
34761
35332
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35333
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34762
35334
  }, "passthrough", ZodTypeAny, objectOutputType<{
34763
35335
  type: ZodLiteral<"object">;
34764
35336
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35337
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34765
35338
  }, ZodTypeAny, "passthrough">, objectInputType<{
34766
35339
  type: ZodLiteral<"object">;
34767
35340
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35341
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34768
35342
  }, ZodTypeAny, "passthrough">>;
35343
+ /**
35344
+ * An optional JSON Schema object defining the structure of the tool's output returned in
35345
+ * the structuredContent field of a CallToolResult.
35346
+ */
35347
+ outputSchema: ZodOptional<ZodObject<{
35348
+ type: ZodLiteral<"object">;
35349
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35350
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35351
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35352
+ type: ZodLiteral<"object">;
35353
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35354
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35355
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35356
+ type: ZodLiteral<"object">;
35357
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35358
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35359
+ }, ZodTypeAny, "passthrough">>>;
35360
+ /**
35361
+ * Optional additional tool information.
35362
+ */
35363
+ annotations: ZodOptional<ZodObject<{
35364
+ /**
35365
+ * A human-readable title for the tool.
35366
+ */
35367
+ title: ZodOptional<ZodString>;
35368
+ /**
35369
+ * If true, the tool does not modify its environment.
35370
+ *
35371
+ * Default: false
35372
+ */
35373
+ readOnlyHint: ZodOptional<ZodBoolean>;
35374
+ /**
35375
+ * If true, the tool may perform destructive updates to its environment.
35376
+ * If false, the tool performs only additive updates.
35377
+ *
35378
+ * (This property is meaningful only when `readOnlyHint == false`)
35379
+ *
35380
+ * Default: true
35381
+ */
35382
+ destructiveHint: ZodOptional<ZodBoolean>;
35383
+ /**
35384
+ * If true, calling the tool repeatedly with the same arguments
35385
+ * will have no additional effect on the its environment.
35386
+ *
35387
+ * (This property is meaningful only when `readOnlyHint == false`)
35388
+ *
35389
+ * Default: false
35390
+ */
35391
+ idempotentHint: ZodOptional<ZodBoolean>;
35392
+ /**
35393
+ * If true, this tool may interact with an "open world" of external
35394
+ * entities. If false, the tool's domain of interaction is closed.
35395
+ * For example, the world of a web search tool is open, whereas that
35396
+ * of a memory tool is not.
35397
+ *
35398
+ * Default: true
35399
+ */
35400
+ openWorldHint: ZodOptional<ZodBoolean>;
35401
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35402
+ /**
35403
+ * A human-readable title for the tool.
35404
+ */
35405
+ title: ZodOptional<ZodString>;
35406
+ /**
35407
+ * If true, the tool does not modify its environment.
35408
+ *
35409
+ * Default: false
35410
+ */
35411
+ readOnlyHint: ZodOptional<ZodBoolean>;
35412
+ /**
35413
+ * If true, the tool may perform destructive updates to its environment.
35414
+ * If false, the tool performs only additive updates.
35415
+ *
35416
+ * (This property is meaningful only when `readOnlyHint == false`)
35417
+ *
35418
+ * Default: true
35419
+ */
35420
+ destructiveHint: ZodOptional<ZodBoolean>;
35421
+ /**
35422
+ * If true, calling the tool repeatedly with the same arguments
35423
+ * will have no additional effect on the its environment.
35424
+ *
35425
+ * (This property is meaningful only when `readOnlyHint == false`)
35426
+ *
35427
+ * Default: false
35428
+ */
35429
+ idempotentHint: ZodOptional<ZodBoolean>;
35430
+ /**
35431
+ * If true, this tool may interact with an "open world" of external
35432
+ * entities. If false, the tool's domain of interaction is closed.
35433
+ * For example, the world of a web search tool is open, whereas that
35434
+ * of a memory tool is not.
35435
+ *
35436
+ * Default: true
35437
+ */
35438
+ openWorldHint: ZodOptional<ZodBoolean>;
35439
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35440
+ /**
35441
+ * A human-readable title for the tool.
35442
+ */
35443
+ title: ZodOptional<ZodString>;
35444
+ /**
35445
+ * If true, the tool does not modify its environment.
35446
+ *
35447
+ * Default: false
35448
+ */
35449
+ readOnlyHint: ZodOptional<ZodBoolean>;
35450
+ /**
35451
+ * If true, the tool may perform destructive updates to its environment.
35452
+ * If false, the tool performs only additive updates.
35453
+ *
35454
+ * (This property is meaningful only when `readOnlyHint == false`)
35455
+ *
35456
+ * Default: true
35457
+ */
35458
+ destructiveHint: ZodOptional<ZodBoolean>;
35459
+ /**
35460
+ * If true, calling the tool repeatedly with the same arguments
35461
+ * will have no additional effect on the its environment.
35462
+ *
35463
+ * (This property is meaningful only when `readOnlyHint == false`)
35464
+ *
35465
+ * Default: false
35466
+ */
35467
+ idempotentHint: ZodOptional<ZodBoolean>;
35468
+ /**
35469
+ * If true, this tool may interact with an "open world" of external
35470
+ * entities. If false, the tool's domain of interaction is closed.
35471
+ * For example, the world of a web search tool is open, whereas that
35472
+ * of a memory tool is not.
35473
+ *
35474
+ * Default: true
35475
+ */
35476
+ openWorldHint: ZodOptional<ZodBoolean>;
35477
+ }, ZodTypeAny, "passthrough">>>;
35478
+ }, ZodTypeAny, "passthrough">>, "many">;
35479
+ }>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<objectUtil.extendShape<{
35480
+ /**
35481
+ * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
35482
+ */
35483
+ _meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35484
+ }, {
35485
+ /**
35486
+ * An opaque token representing the pagination position after the last returned result.
35487
+ * If present, there may be more results available.
35488
+ */
35489
+ nextCursor: ZodOptional<ZodString>;
35490
+ }>, {
35491
+ tools: ZodArray<ZodObject<{
35492
+ /**
35493
+ * The name of the tool.
35494
+ */
35495
+ name: ZodString;
35496
+ /**
35497
+ * A human-readable description of the tool.
35498
+ */
35499
+ description: ZodOptional<ZodString>;
35500
+ /**
35501
+ * A JSON Schema object defining the expected parameters for the tool.
35502
+ */
35503
+ inputSchema: ZodObject<{
35504
+ type: ZodLiteral<"object">;
35505
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35506
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35507
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35508
+ type: ZodLiteral<"object">;
35509
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35510
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35511
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35512
+ type: ZodLiteral<"object">;
35513
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35514
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35515
+ }, ZodTypeAny, "passthrough">>;
35516
+ /**
35517
+ * An optional JSON Schema object defining the structure of the tool's output returned in
35518
+ * the structuredContent field of a CallToolResult.
35519
+ */
35520
+ outputSchema: ZodOptional<ZodObject<{
35521
+ type: ZodLiteral<"object">;
35522
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35523
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35524
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35525
+ type: ZodLiteral<"object">;
35526
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35527
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35528
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35529
+ type: ZodLiteral<"object">;
35530
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35531
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35532
+ }, ZodTypeAny, "passthrough">>>;
35533
+ /**
35534
+ * Optional additional tool information.
35535
+ */
35536
+ annotations: ZodOptional<ZodObject<{
35537
+ /**
35538
+ * A human-readable title for the tool.
35539
+ */
35540
+ title: ZodOptional<ZodString>;
35541
+ /**
35542
+ * If true, the tool does not modify its environment.
35543
+ *
35544
+ * Default: false
35545
+ */
35546
+ readOnlyHint: ZodOptional<ZodBoolean>;
35547
+ /**
35548
+ * If true, the tool may perform destructive updates to its environment.
35549
+ * If false, the tool performs only additive updates.
35550
+ *
35551
+ * (This property is meaningful only when `readOnlyHint == false`)
35552
+ *
35553
+ * Default: true
35554
+ */
35555
+ destructiveHint: ZodOptional<ZodBoolean>;
35556
+ /**
35557
+ * If true, calling the tool repeatedly with the same arguments
35558
+ * will have no additional effect on the its environment.
35559
+ *
35560
+ * (This property is meaningful only when `readOnlyHint == false`)
35561
+ *
35562
+ * Default: false
35563
+ */
35564
+ idempotentHint: ZodOptional<ZodBoolean>;
35565
+ /**
35566
+ * If true, this tool may interact with an "open world" of external
35567
+ * entities. If false, the tool's domain of interaction is closed.
35568
+ * For example, the world of a web search tool is open, whereas that
35569
+ * of a memory tool is not.
35570
+ *
35571
+ * Default: true
35572
+ */
35573
+ openWorldHint: ZodOptional<ZodBoolean>;
35574
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35575
+ /**
35576
+ * A human-readable title for the tool.
35577
+ */
35578
+ title: ZodOptional<ZodString>;
35579
+ /**
35580
+ * If true, the tool does not modify its environment.
35581
+ *
35582
+ * Default: false
35583
+ */
35584
+ readOnlyHint: ZodOptional<ZodBoolean>;
35585
+ /**
35586
+ * If true, the tool may perform destructive updates to its environment.
35587
+ * If false, the tool performs only additive updates.
35588
+ *
35589
+ * (This property is meaningful only when `readOnlyHint == false`)
35590
+ *
35591
+ * Default: true
35592
+ */
35593
+ destructiveHint: ZodOptional<ZodBoolean>;
35594
+ /**
35595
+ * If true, calling the tool repeatedly with the same arguments
35596
+ * will have no additional effect on the its environment.
35597
+ *
35598
+ * (This property is meaningful only when `readOnlyHint == false`)
35599
+ *
35600
+ * Default: false
35601
+ */
35602
+ idempotentHint: ZodOptional<ZodBoolean>;
35603
+ /**
35604
+ * If true, this tool may interact with an "open world" of external
35605
+ * entities. If false, the tool's domain of interaction is closed.
35606
+ * For example, the world of a web search tool is open, whereas that
35607
+ * of a memory tool is not.
35608
+ *
35609
+ * Default: true
35610
+ */
35611
+ openWorldHint: ZodOptional<ZodBoolean>;
35612
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35613
+ /**
35614
+ * A human-readable title for the tool.
35615
+ */
35616
+ title: ZodOptional<ZodString>;
35617
+ /**
35618
+ * If true, the tool does not modify its environment.
35619
+ *
35620
+ * Default: false
35621
+ */
35622
+ readOnlyHint: ZodOptional<ZodBoolean>;
35623
+ /**
35624
+ * If true, the tool may perform destructive updates to its environment.
35625
+ * If false, the tool performs only additive updates.
35626
+ *
35627
+ * (This property is meaningful only when `readOnlyHint == false`)
35628
+ *
35629
+ * Default: true
35630
+ */
35631
+ destructiveHint: ZodOptional<ZodBoolean>;
35632
+ /**
35633
+ * If true, calling the tool repeatedly with the same arguments
35634
+ * will have no additional effect on the its environment.
35635
+ *
35636
+ * (This property is meaningful only when `readOnlyHint == false`)
35637
+ *
35638
+ * Default: false
35639
+ */
35640
+ idempotentHint: ZodOptional<ZodBoolean>;
35641
+ /**
35642
+ * If true, this tool may interact with an "open world" of external
35643
+ * entities. If false, the tool's domain of interaction is closed.
35644
+ * For example, the world of a web search tool is open, whereas that
35645
+ * of a memory tool is not.
35646
+ *
35647
+ * Default: true
35648
+ */
35649
+ openWorldHint: ZodOptional<ZodBoolean>;
35650
+ }, ZodTypeAny, "passthrough">>>;
35651
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35652
+ /**
35653
+ * The name of the tool.
35654
+ */
35655
+ name: ZodString;
35656
+ /**
35657
+ * A human-readable description of the tool.
35658
+ */
35659
+ description: ZodOptional<ZodString>;
35660
+ /**
35661
+ * A JSON Schema object defining the expected parameters for the tool.
35662
+ */
35663
+ inputSchema: ZodObject<{
35664
+ type: ZodLiteral<"object">;
35665
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35666
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35667
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35668
+ type: ZodLiteral<"object">;
35669
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35670
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35671
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35672
+ type: ZodLiteral<"object">;
35673
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35674
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35675
+ }, ZodTypeAny, "passthrough">>;
35676
+ /**
35677
+ * An optional JSON Schema object defining the structure of the tool's output returned in
35678
+ * the structuredContent field of a CallToolResult.
35679
+ */
35680
+ outputSchema: ZodOptional<ZodObject<{
35681
+ type: ZodLiteral<"object">;
35682
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35683
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35684
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35685
+ type: ZodLiteral<"object">;
35686
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35687
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35688
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35689
+ type: ZodLiteral<"object">;
35690
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35691
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35692
+ }, ZodTypeAny, "passthrough">>>;
35693
+ /**
35694
+ * Optional additional tool information.
35695
+ */
35696
+ annotations: ZodOptional<ZodObject<{
35697
+ /**
35698
+ * A human-readable title for the tool.
35699
+ */
35700
+ title: ZodOptional<ZodString>;
35701
+ /**
35702
+ * If true, the tool does not modify its environment.
35703
+ *
35704
+ * Default: false
35705
+ */
35706
+ readOnlyHint: ZodOptional<ZodBoolean>;
35707
+ /**
35708
+ * If true, the tool may perform destructive updates to its environment.
35709
+ * If false, the tool performs only additive updates.
35710
+ *
35711
+ * (This property is meaningful only when `readOnlyHint == false`)
35712
+ *
35713
+ * Default: true
35714
+ */
35715
+ destructiveHint: ZodOptional<ZodBoolean>;
35716
+ /**
35717
+ * If true, calling the tool repeatedly with the same arguments
35718
+ * will have no additional effect on the its environment.
35719
+ *
35720
+ * (This property is meaningful only when `readOnlyHint == false`)
35721
+ *
35722
+ * Default: false
35723
+ */
35724
+ idempotentHint: ZodOptional<ZodBoolean>;
35725
+ /**
35726
+ * If true, this tool may interact with an "open world" of external
35727
+ * entities. If false, the tool's domain of interaction is closed.
35728
+ * For example, the world of a web search tool is open, whereas that
35729
+ * of a memory tool is not.
35730
+ *
35731
+ * Default: true
35732
+ */
35733
+ openWorldHint: ZodOptional<ZodBoolean>;
35734
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35735
+ /**
35736
+ * A human-readable title for the tool.
35737
+ */
35738
+ title: ZodOptional<ZodString>;
35739
+ /**
35740
+ * If true, the tool does not modify its environment.
35741
+ *
35742
+ * Default: false
35743
+ */
35744
+ readOnlyHint: ZodOptional<ZodBoolean>;
35745
+ /**
35746
+ * If true, the tool may perform destructive updates to its environment.
35747
+ * If false, the tool performs only additive updates.
35748
+ *
35749
+ * (This property is meaningful only when `readOnlyHint == false`)
35750
+ *
35751
+ * Default: true
35752
+ */
35753
+ destructiveHint: ZodOptional<ZodBoolean>;
35754
+ /**
35755
+ * If true, calling the tool repeatedly with the same arguments
35756
+ * will have no additional effect on the its environment.
35757
+ *
35758
+ * (This property is meaningful only when `readOnlyHint == false`)
35759
+ *
35760
+ * Default: false
35761
+ */
35762
+ idempotentHint: ZodOptional<ZodBoolean>;
35763
+ /**
35764
+ * If true, this tool may interact with an "open world" of external
35765
+ * entities. If false, the tool's domain of interaction is closed.
35766
+ * For example, the world of a web search tool is open, whereas that
35767
+ * of a memory tool is not.
35768
+ *
35769
+ * Default: true
35770
+ */
35771
+ openWorldHint: ZodOptional<ZodBoolean>;
35772
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35773
+ /**
35774
+ * A human-readable title for the tool.
35775
+ */
35776
+ title: ZodOptional<ZodString>;
35777
+ /**
35778
+ * If true, the tool does not modify its environment.
35779
+ *
35780
+ * Default: false
35781
+ */
35782
+ readOnlyHint: ZodOptional<ZodBoolean>;
35783
+ /**
35784
+ * If true, the tool may perform destructive updates to its environment.
35785
+ * If false, the tool performs only additive updates.
35786
+ *
35787
+ * (This property is meaningful only when `readOnlyHint == false`)
35788
+ *
35789
+ * Default: true
35790
+ */
35791
+ destructiveHint: ZodOptional<ZodBoolean>;
35792
+ /**
35793
+ * If true, calling the tool repeatedly with the same arguments
35794
+ * will have no additional effect on the its environment.
35795
+ *
35796
+ * (This property is meaningful only when `readOnlyHint == false`)
35797
+ *
35798
+ * Default: false
35799
+ */
35800
+ idempotentHint: ZodOptional<ZodBoolean>;
35801
+ /**
35802
+ * If true, this tool may interact with an "open world" of external
35803
+ * entities. If false, the tool's domain of interaction is closed.
35804
+ * For example, the world of a web search tool is open, whereas that
35805
+ * of a memory tool is not.
35806
+ *
35807
+ * Default: true
35808
+ */
35809
+ openWorldHint: ZodOptional<ZodBoolean>;
35810
+ }, ZodTypeAny, "passthrough">>>;
34769
35811
  }, ZodTypeAny, "passthrough">, objectInputType<{
34770
35812
  /**
34771
35813
  * The name of the tool.
@@ -34781,13 +35823,151 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34781
35823
  inputSchema: ZodObject<{
34782
35824
  type: ZodLiteral<"object">;
34783
35825
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35826
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35827
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35828
+ type: ZodLiteral<"object">;
35829
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35830
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35831
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35832
+ type: ZodLiteral<"object">;
35833
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35834
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35835
+ }, ZodTypeAny, "passthrough">>;
35836
+ /**
35837
+ * An optional JSON Schema object defining the structure of the tool's output returned in
35838
+ * the structuredContent field of a CallToolResult.
35839
+ */
35840
+ outputSchema: ZodOptional<ZodObject<{
35841
+ type: ZodLiteral<"object">;
35842
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35843
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35844
+ }, "passthrough", ZodTypeAny, objectOutputType<{
35845
+ type: ZodLiteral<"object">;
35846
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35847
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35848
+ }, ZodTypeAny, "passthrough">, objectInputType<{
35849
+ type: ZodLiteral<"object">;
35850
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35851
+ required: ZodOptional<ZodArray<ZodString, "many">>;
35852
+ }, ZodTypeAny, "passthrough">>>;
35853
+ /**
35854
+ * Optional additional tool information.
35855
+ */
35856
+ annotations: ZodOptional<ZodObject<{
35857
+ /**
35858
+ * A human-readable title for the tool.
35859
+ */
35860
+ title: ZodOptional<ZodString>;
35861
+ /**
35862
+ * If true, the tool does not modify its environment.
35863
+ *
35864
+ * Default: false
35865
+ */
35866
+ readOnlyHint: ZodOptional<ZodBoolean>;
35867
+ /**
35868
+ * If true, the tool may perform destructive updates to its environment.
35869
+ * If false, the tool performs only additive updates.
35870
+ *
35871
+ * (This property is meaningful only when `readOnlyHint == false`)
35872
+ *
35873
+ * Default: true
35874
+ */
35875
+ destructiveHint: ZodOptional<ZodBoolean>;
35876
+ /**
35877
+ * If true, calling the tool repeatedly with the same arguments
35878
+ * will have no additional effect on the its environment.
35879
+ *
35880
+ * (This property is meaningful only when `readOnlyHint == false`)
35881
+ *
35882
+ * Default: false
35883
+ */
35884
+ idempotentHint: ZodOptional<ZodBoolean>;
35885
+ /**
35886
+ * If true, this tool may interact with an "open world" of external
35887
+ * entities. If false, the tool's domain of interaction is closed.
35888
+ * For example, the world of a web search tool is open, whereas that
35889
+ * of a memory tool is not.
35890
+ *
35891
+ * Default: true
35892
+ */
35893
+ openWorldHint: ZodOptional<ZodBoolean>;
34784
35894
  }, "passthrough", ZodTypeAny, objectOutputType<{
34785
- type: ZodLiteral<"object">;
34786
- properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35895
+ /**
35896
+ * A human-readable title for the tool.
35897
+ */
35898
+ title: ZodOptional<ZodString>;
35899
+ /**
35900
+ * If true, the tool does not modify its environment.
35901
+ *
35902
+ * Default: false
35903
+ */
35904
+ readOnlyHint: ZodOptional<ZodBoolean>;
35905
+ /**
35906
+ * If true, the tool may perform destructive updates to its environment.
35907
+ * If false, the tool performs only additive updates.
35908
+ *
35909
+ * (This property is meaningful only when `readOnlyHint == false`)
35910
+ *
35911
+ * Default: true
35912
+ */
35913
+ destructiveHint: ZodOptional<ZodBoolean>;
35914
+ /**
35915
+ * If true, calling the tool repeatedly with the same arguments
35916
+ * will have no additional effect on the its environment.
35917
+ *
35918
+ * (This property is meaningful only when `readOnlyHint == false`)
35919
+ *
35920
+ * Default: false
35921
+ */
35922
+ idempotentHint: ZodOptional<ZodBoolean>;
35923
+ /**
35924
+ * If true, this tool may interact with an "open world" of external
35925
+ * entities. If false, the tool's domain of interaction is closed.
35926
+ * For example, the world of a web search tool is open, whereas that
35927
+ * of a memory tool is not.
35928
+ *
35929
+ * Default: true
35930
+ */
35931
+ openWorldHint: ZodOptional<ZodBoolean>;
34787
35932
  }, ZodTypeAny, "passthrough">, objectInputType<{
34788
- type: ZodLiteral<"object">;
34789
- properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
34790
- }, ZodTypeAny, "passthrough">>;
35933
+ /**
35934
+ * A human-readable title for the tool.
35935
+ */
35936
+ title: ZodOptional<ZodString>;
35937
+ /**
35938
+ * If true, the tool does not modify its environment.
35939
+ *
35940
+ * Default: false
35941
+ */
35942
+ readOnlyHint: ZodOptional<ZodBoolean>;
35943
+ /**
35944
+ * If true, the tool may perform destructive updates to its environment.
35945
+ * If false, the tool performs only additive updates.
35946
+ *
35947
+ * (This property is meaningful only when `readOnlyHint == false`)
35948
+ *
35949
+ * Default: true
35950
+ */
35951
+ destructiveHint: ZodOptional<ZodBoolean>;
35952
+ /**
35953
+ * If true, calling the tool repeatedly with the same arguments
35954
+ * will have no additional effect on the its environment.
35955
+ *
35956
+ * (This property is meaningful only when `readOnlyHint == false`)
35957
+ *
35958
+ * Default: false
35959
+ */
35960
+ idempotentHint: ZodOptional<ZodBoolean>;
35961
+ /**
35962
+ * If true, this tool may interact with an "open world" of external
35963
+ * entities. If false, the tool's domain of interaction is closed.
35964
+ * For example, the world of a web search tool is open, whereas that
35965
+ * of a memory tool is not.
35966
+ *
35967
+ * Default: true
35968
+ */
35969
+ openWorldHint: ZodOptional<ZodBoolean>;
35970
+ }, ZodTypeAny, "passthrough">>>;
34791
35971
  }, ZodTypeAny, "passthrough">>, "many">;
34792
35972
  }>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape<objectUtil.extendShape<{
34793
35973
  /**
@@ -34816,13 +35996,151 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34816
35996
  inputSchema: ZodObject<{
34817
35997
  type: ZodLiteral<"object">;
34818
35998
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
35999
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34819
36000
  }, "passthrough", ZodTypeAny, objectOutputType<{
34820
36001
  type: ZodLiteral<"object">;
34821
36002
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36003
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34822
36004
  }, ZodTypeAny, "passthrough">, objectInputType<{
34823
36005
  type: ZodLiteral<"object">;
34824
36006
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36007
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34825
36008
  }, ZodTypeAny, "passthrough">>;
36009
+ /**
36010
+ * An optional JSON Schema object defining the structure of the tool's output returned in
36011
+ * the structuredContent field of a CallToolResult.
36012
+ */
36013
+ outputSchema: ZodOptional<ZodObject<{
36014
+ type: ZodLiteral<"object">;
36015
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36016
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36017
+ }, "passthrough", ZodTypeAny, objectOutputType<{
36018
+ type: ZodLiteral<"object">;
36019
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36020
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36021
+ }, ZodTypeAny, "passthrough">, objectInputType<{
36022
+ type: ZodLiteral<"object">;
36023
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36024
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36025
+ }, ZodTypeAny, "passthrough">>>;
36026
+ /**
36027
+ * Optional additional tool information.
36028
+ */
36029
+ annotations: ZodOptional<ZodObject<{
36030
+ /**
36031
+ * A human-readable title for the tool.
36032
+ */
36033
+ title: ZodOptional<ZodString>;
36034
+ /**
36035
+ * If true, the tool does not modify its environment.
36036
+ *
36037
+ * Default: false
36038
+ */
36039
+ readOnlyHint: ZodOptional<ZodBoolean>;
36040
+ /**
36041
+ * If true, the tool may perform destructive updates to its environment.
36042
+ * If false, the tool performs only additive updates.
36043
+ *
36044
+ * (This property is meaningful only when `readOnlyHint == false`)
36045
+ *
36046
+ * Default: true
36047
+ */
36048
+ destructiveHint: ZodOptional<ZodBoolean>;
36049
+ /**
36050
+ * If true, calling the tool repeatedly with the same arguments
36051
+ * will have no additional effect on the its environment.
36052
+ *
36053
+ * (This property is meaningful only when `readOnlyHint == false`)
36054
+ *
36055
+ * Default: false
36056
+ */
36057
+ idempotentHint: ZodOptional<ZodBoolean>;
36058
+ /**
36059
+ * If true, this tool may interact with an "open world" of external
36060
+ * entities. If false, the tool's domain of interaction is closed.
36061
+ * For example, the world of a web search tool is open, whereas that
36062
+ * of a memory tool is not.
36063
+ *
36064
+ * Default: true
36065
+ */
36066
+ openWorldHint: ZodOptional<ZodBoolean>;
36067
+ }, "passthrough", ZodTypeAny, objectOutputType<{
36068
+ /**
36069
+ * A human-readable title for the tool.
36070
+ */
36071
+ title: ZodOptional<ZodString>;
36072
+ /**
36073
+ * If true, the tool does not modify its environment.
36074
+ *
36075
+ * Default: false
36076
+ */
36077
+ readOnlyHint: ZodOptional<ZodBoolean>;
36078
+ /**
36079
+ * If true, the tool may perform destructive updates to its environment.
36080
+ * If false, the tool performs only additive updates.
36081
+ *
36082
+ * (This property is meaningful only when `readOnlyHint == false`)
36083
+ *
36084
+ * Default: true
36085
+ */
36086
+ destructiveHint: ZodOptional<ZodBoolean>;
36087
+ /**
36088
+ * If true, calling the tool repeatedly with the same arguments
36089
+ * will have no additional effect on the its environment.
36090
+ *
36091
+ * (This property is meaningful only when `readOnlyHint == false`)
36092
+ *
36093
+ * Default: false
36094
+ */
36095
+ idempotentHint: ZodOptional<ZodBoolean>;
36096
+ /**
36097
+ * If true, this tool may interact with an "open world" of external
36098
+ * entities. If false, the tool's domain of interaction is closed.
36099
+ * For example, the world of a web search tool is open, whereas that
36100
+ * of a memory tool is not.
36101
+ *
36102
+ * Default: true
36103
+ */
36104
+ openWorldHint: ZodOptional<ZodBoolean>;
36105
+ }, ZodTypeAny, "passthrough">, objectInputType<{
36106
+ /**
36107
+ * A human-readable title for the tool.
36108
+ */
36109
+ title: ZodOptional<ZodString>;
36110
+ /**
36111
+ * If true, the tool does not modify its environment.
36112
+ *
36113
+ * Default: false
36114
+ */
36115
+ readOnlyHint: ZodOptional<ZodBoolean>;
36116
+ /**
36117
+ * If true, the tool may perform destructive updates to its environment.
36118
+ * If false, the tool performs only additive updates.
36119
+ *
36120
+ * (This property is meaningful only when `readOnlyHint == false`)
36121
+ *
36122
+ * Default: true
36123
+ */
36124
+ destructiveHint: ZodOptional<ZodBoolean>;
36125
+ /**
36126
+ * If true, calling the tool repeatedly with the same arguments
36127
+ * will have no additional effect on the its environment.
36128
+ *
36129
+ * (This property is meaningful only when `readOnlyHint == false`)
36130
+ *
36131
+ * Default: false
36132
+ */
36133
+ idempotentHint: ZodOptional<ZodBoolean>;
36134
+ /**
36135
+ * If true, this tool may interact with an "open world" of external
36136
+ * entities. If false, the tool's domain of interaction is closed.
36137
+ * For example, the world of a web search tool is open, whereas that
36138
+ * of a memory tool is not.
36139
+ *
36140
+ * Default: true
36141
+ */
36142
+ openWorldHint: ZodOptional<ZodBoolean>;
36143
+ }, ZodTypeAny, "passthrough">>>;
34826
36144
  }, "passthrough", ZodTypeAny, objectOutputType<{
34827
36145
  /**
34828
36146
  * The name of the tool.
@@ -34838,13 +36156,151 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34838
36156
  inputSchema: ZodObject<{
34839
36157
  type: ZodLiteral<"object">;
34840
36158
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36159
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34841
36160
  }, "passthrough", ZodTypeAny, objectOutputType<{
34842
36161
  type: ZodLiteral<"object">;
34843
36162
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36163
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34844
36164
  }, ZodTypeAny, "passthrough">, objectInputType<{
34845
36165
  type: ZodLiteral<"object">;
34846
36166
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36167
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34847
36168
  }, ZodTypeAny, "passthrough">>;
36169
+ /**
36170
+ * An optional JSON Schema object defining the structure of the tool's output returned in
36171
+ * the structuredContent field of a CallToolResult.
36172
+ */
36173
+ outputSchema: ZodOptional<ZodObject<{
36174
+ type: ZodLiteral<"object">;
36175
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36176
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36177
+ }, "passthrough", ZodTypeAny, objectOutputType<{
36178
+ type: ZodLiteral<"object">;
36179
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36180
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36181
+ }, ZodTypeAny, "passthrough">, objectInputType<{
36182
+ type: ZodLiteral<"object">;
36183
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36184
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36185
+ }, ZodTypeAny, "passthrough">>>;
36186
+ /**
36187
+ * Optional additional tool information.
36188
+ */
36189
+ annotations: ZodOptional<ZodObject<{
36190
+ /**
36191
+ * A human-readable title for the tool.
36192
+ */
36193
+ title: ZodOptional<ZodString>;
36194
+ /**
36195
+ * If true, the tool does not modify its environment.
36196
+ *
36197
+ * Default: false
36198
+ */
36199
+ readOnlyHint: ZodOptional<ZodBoolean>;
36200
+ /**
36201
+ * If true, the tool may perform destructive updates to its environment.
36202
+ * If false, the tool performs only additive updates.
36203
+ *
36204
+ * (This property is meaningful only when `readOnlyHint == false`)
36205
+ *
36206
+ * Default: true
36207
+ */
36208
+ destructiveHint: ZodOptional<ZodBoolean>;
36209
+ /**
36210
+ * If true, calling the tool repeatedly with the same arguments
36211
+ * will have no additional effect on the its environment.
36212
+ *
36213
+ * (This property is meaningful only when `readOnlyHint == false`)
36214
+ *
36215
+ * Default: false
36216
+ */
36217
+ idempotentHint: ZodOptional<ZodBoolean>;
36218
+ /**
36219
+ * If true, this tool may interact with an "open world" of external
36220
+ * entities. If false, the tool's domain of interaction is closed.
36221
+ * For example, the world of a web search tool is open, whereas that
36222
+ * of a memory tool is not.
36223
+ *
36224
+ * Default: true
36225
+ */
36226
+ openWorldHint: ZodOptional<ZodBoolean>;
36227
+ }, "passthrough", ZodTypeAny, objectOutputType<{
36228
+ /**
36229
+ * A human-readable title for the tool.
36230
+ */
36231
+ title: ZodOptional<ZodString>;
36232
+ /**
36233
+ * If true, the tool does not modify its environment.
36234
+ *
36235
+ * Default: false
36236
+ */
36237
+ readOnlyHint: ZodOptional<ZodBoolean>;
36238
+ /**
36239
+ * If true, the tool may perform destructive updates to its environment.
36240
+ * If false, the tool performs only additive updates.
36241
+ *
36242
+ * (This property is meaningful only when `readOnlyHint == false`)
36243
+ *
36244
+ * Default: true
36245
+ */
36246
+ destructiveHint: ZodOptional<ZodBoolean>;
36247
+ /**
36248
+ * If true, calling the tool repeatedly with the same arguments
36249
+ * will have no additional effect on the its environment.
36250
+ *
36251
+ * (This property is meaningful only when `readOnlyHint == false`)
36252
+ *
36253
+ * Default: false
36254
+ */
36255
+ idempotentHint: ZodOptional<ZodBoolean>;
36256
+ /**
36257
+ * If true, this tool may interact with an "open world" of external
36258
+ * entities. If false, the tool's domain of interaction is closed.
36259
+ * For example, the world of a web search tool is open, whereas that
36260
+ * of a memory tool is not.
36261
+ *
36262
+ * Default: true
36263
+ */
36264
+ openWorldHint: ZodOptional<ZodBoolean>;
36265
+ }, ZodTypeAny, "passthrough">, objectInputType<{
36266
+ /**
36267
+ * A human-readable title for the tool.
36268
+ */
36269
+ title: ZodOptional<ZodString>;
36270
+ /**
36271
+ * If true, the tool does not modify its environment.
36272
+ *
36273
+ * Default: false
36274
+ */
36275
+ readOnlyHint: ZodOptional<ZodBoolean>;
36276
+ /**
36277
+ * If true, the tool may perform destructive updates to its environment.
36278
+ * If false, the tool performs only additive updates.
36279
+ *
36280
+ * (This property is meaningful only when `readOnlyHint == false`)
36281
+ *
36282
+ * Default: true
36283
+ */
36284
+ destructiveHint: ZodOptional<ZodBoolean>;
36285
+ /**
36286
+ * If true, calling the tool repeatedly with the same arguments
36287
+ * will have no additional effect on the its environment.
36288
+ *
36289
+ * (This property is meaningful only when `readOnlyHint == false`)
36290
+ *
36291
+ * Default: false
36292
+ */
36293
+ idempotentHint: ZodOptional<ZodBoolean>;
36294
+ /**
36295
+ * If true, this tool may interact with an "open world" of external
36296
+ * entities. If false, the tool's domain of interaction is closed.
36297
+ * For example, the world of a web search tool is open, whereas that
36298
+ * of a memory tool is not.
36299
+ *
36300
+ * Default: true
36301
+ */
36302
+ openWorldHint: ZodOptional<ZodBoolean>;
36303
+ }, ZodTypeAny, "passthrough">>>;
34848
36304
  }, ZodTypeAny, "passthrough">, objectInputType<{
34849
36305
  /**
34850
36306
  * The name of the tool.
@@ -34860,13 +36316,151 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
34860
36316
  inputSchema: ZodObject<{
34861
36317
  type: ZodLiteral<"object">;
34862
36318
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36319
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34863
36320
  }, "passthrough", ZodTypeAny, objectOutputType<{
34864
36321
  type: ZodLiteral<"object">;
34865
36322
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36323
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34866
36324
  }, ZodTypeAny, "passthrough">, objectInputType<{
34867
36325
  type: ZodLiteral<"object">;
34868
36326
  properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36327
+ required: ZodOptional<ZodArray<ZodString, "many">>;
34869
36328
  }, ZodTypeAny, "passthrough">>;
36329
+ /**
36330
+ * An optional JSON Schema object defining the structure of the tool's output returned in
36331
+ * the structuredContent field of a CallToolResult.
36332
+ */
36333
+ outputSchema: ZodOptional<ZodObject<{
36334
+ type: ZodLiteral<"object">;
36335
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36336
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36337
+ }, "passthrough", ZodTypeAny, objectOutputType<{
36338
+ type: ZodLiteral<"object">;
36339
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36340
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36341
+ }, ZodTypeAny, "passthrough">, objectInputType<{
36342
+ type: ZodLiteral<"object">;
36343
+ properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
36344
+ required: ZodOptional<ZodArray<ZodString, "many">>;
36345
+ }, ZodTypeAny, "passthrough">>>;
36346
+ /**
36347
+ * Optional additional tool information.
36348
+ */
36349
+ annotations: ZodOptional<ZodObject<{
36350
+ /**
36351
+ * A human-readable title for the tool.
36352
+ */
36353
+ title: ZodOptional<ZodString>;
36354
+ /**
36355
+ * If true, the tool does not modify its environment.
36356
+ *
36357
+ * Default: false
36358
+ */
36359
+ readOnlyHint: ZodOptional<ZodBoolean>;
36360
+ /**
36361
+ * If true, the tool may perform destructive updates to its environment.
36362
+ * If false, the tool performs only additive updates.
36363
+ *
36364
+ * (This property is meaningful only when `readOnlyHint == false`)
36365
+ *
36366
+ * Default: true
36367
+ */
36368
+ destructiveHint: ZodOptional<ZodBoolean>;
36369
+ /**
36370
+ * If true, calling the tool repeatedly with the same arguments
36371
+ * will have no additional effect on the its environment.
36372
+ *
36373
+ * (This property is meaningful only when `readOnlyHint == false`)
36374
+ *
36375
+ * Default: false
36376
+ */
36377
+ idempotentHint: ZodOptional<ZodBoolean>;
36378
+ /**
36379
+ * If true, this tool may interact with an "open world" of external
36380
+ * entities. If false, the tool's domain of interaction is closed.
36381
+ * For example, the world of a web search tool is open, whereas that
36382
+ * of a memory tool is not.
36383
+ *
36384
+ * Default: true
36385
+ */
36386
+ openWorldHint: ZodOptional<ZodBoolean>;
36387
+ }, "passthrough", ZodTypeAny, objectOutputType<{
36388
+ /**
36389
+ * A human-readable title for the tool.
36390
+ */
36391
+ title: ZodOptional<ZodString>;
36392
+ /**
36393
+ * If true, the tool does not modify its environment.
36394
+ *
36395
+ * Default: false
36396
+ */
36397
+ readOnlyHint: ZodOptional<ZodBoolean>;
36398
+ /**
36399
+ * If true, the tool may perform destructive updates to its environment.
36400
+ * If false, the tool performs only additive updates.
36401
+ *
36402
+ * (This property is meaningful only when `readOnlyHint == false`)
36403
+ *
36404
+ * Default: true
36405
+ */
36406
+ destructiveHint: ZodOptional<ZodBoolean>;
36407
+ /**
36408
+ * If true, calling the tool repeatedly with the same arguments
36409
+ * will have no additional effect on the its environment.
36410
+ *
36411
+ * (This property is meaningful only when `readOnlyHint == false`)
36412
+ *
36413
+ * Default: false
36414
+ */
36415
+ idempotentHint: ZodOptional<ZodBoolean>;
36416
+ /**
36417
+ * If true, this tool may interact with an "open world" of external
36418
+ * entities. If false, the tool's domain of interaction is closed.
36419
+ * For example, the world of a web search tool is open, whereas that
36420
+ * of a memory tool is not.
36421
+ *
36422
+ * Default: true
36423
+ */
36424
+ openWorldHint: ZodOptional<ZodBoolean>;
36425
+ }, ZodTypeAny, "passthrough">, objectInputType<{
36426
+ /**
36427
+ * A human-readable title for the tool.
36428
+ */
36429
+ title: ZodOptional<ZodString>;
36430
+ /**
36431
+ * If true, the tool does not modify its environment.
36432
+ *
36433
+ * Default: false
36434
+ */
36435
+ readOnlyHint: ZodOptional<ZodBoolean>;
36436
+ /**
36437
+ * If true, the tool may perform destructive updates to its environment.
36438
+ * If false, the tool performs only additive updates.
36439
+ *
36440
+ * (This property is meaningful only when `readOnlyHint == false`)
36441
+ *
36442
+ * Default: true
36443
+ */
36444
+ destructiveHint: ZodOptional<ZodBoolean>;
36445
+ /**
36446
+ * If true, calling the tool repeatedly with the same arguments
36447
+ * will have no additional effect on the its environment.
36448
+ *
36449
+ * (This property is meaningful only when `readOnlyHint == false`)
36450
+ *
36451
+ * Default: false
36452
+ */
36453
+ idempotentHint: ZodOptional<ZodBoolean>;
36454
+ /**
36455
+ * If true, this tool may interact with an "open world" of external
36456
+ * entities. If false, the tool's domain of interaction is closed.
36457
+ * For example, the world of a web search tool is open, whereas that
36458
+ * of a memory tool is not.
36459
+ *
36460
+ * Default: true
36461
+ */
36462
+ openWorldHint: ZodOptional<ZodBoolean>;
36463
+ }, ZodTypeAny, "passthrough">>>;
34870
36464
  }, ZodTypeAny, "passthrough">>, "many">;
34871
36465
  }>, ZodTypeAny, "passthrough">>]>;
34872
36466
  type Primitive = string | number | boolean | bigint | null | undefined;
@@ -34875,6 +36469,7 @@ type Flatten<T> = T extends Primitive ? T : T extends Array<infer U> ? Array<Fla
34875
36469
  } : T;
34876
36470
  type Infer<Schema extends ZodTypeAny> = Flatten<TypeOf<Schema>>;
34877
36471
  type Request = Infer<typeof RequestSchema>;
36472
+ type RequestMeta = Infer<typeof RequestMetaSchema>;
34878
36473
  type Notification = Infer<typeof NotificationSchema>;
34879
36474
  type Result = Infer<typeof ResultSchema>;
34880
36475
  type RequestId = Infer<typeof RequestIdSchema>;
@@ -34888,6 +36483,7 @@ type ListResourcesResult = Infer<typeof ListResourcesResultSchema>;
34888
36483
  type ReadResourceResult = Infer<typeof ReadResourceResultSchema>;
34889
36484
  type ResourceUpdatedNotification = Infer<typeof ResourceUpdatedNotificationSchema>;
34890
36485
  type GetPromptResult = Infer<typeof GetPromptResultSchema>;
36486
+ type ToolAnnotations = Infer<typeof ToolAnnotationsSchema>;
34891
36487
  type CallToolResult = Infer<typeof CallToolResultSchema>;
34892
36488
  type LoggingMessageNotification = Infer<typeof LoggingMessageNotificationSchema>;
34893
36489
  type CreateMessageRequest = Infer<typeof CreateMessageRequestSchema>;
@@ -35066,6 +36662,15 @@ type RequestHandlerExtra<SendRequestT extends Request, SendNotificationT extends
35066
36662
  * The session ID from the transport, if available.
35067
36663
  */
35068
36664
  sessionId?: string;
36665
+ /**
36666
+ * Metadata from the original request.
36667
+ */
36668
+ _meta?: RequestMeta;
36669
+ /**
36670
+ * The JSON-RPC ID of the request being handled.
36671
+ * This can be useful for tracking or logging purposes.
36672
+ */
36673
+ requestId: RequestId;
35069
36674
  /**
35070
36675
  * Sends a notification that relates to the current request being handled.
35071
36676
  *
@@ -35401,6 +37006,7 @@ declare class McpServer {
35401
37006
  * Registers a resource `name` with a template pattern and metadata, which will use the given callback to respond to read requests.
35402
37007
  */
35403
37008
  resource(name: string, template: ResourceTemplate, metadata: ResourceMetadata, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate;
37009
+ private _createRegisteredTool;
35404
37010
  /**
35405
37011
  * Registers a zero-argument tool `name`, which will run the given function when the client calls it.
35406
37012
  */
@@ -35410,13 +37016,39 @@ declare class McpServer {
35410
37016
  */
35411
37017
  tool(name: string, description: string, cb: ToolCallback): RegisteredTool;
35412
37018
  /**
35413
- * Registers a tool `name` accepting the given arguments, which must be an object containing named properties associated with Zod schemas. When the client calls it, the function will be run with the parsed and validated arguments.
37019
+ * Registers a tool taking either a parameter schema for validation or annotations for additional metadata.
37020
+ * This unified overload handles both `tool(name, paramsSchema, cb)` and `tool(name, annotations, cb)` cases.
37021
+ *
37022
+ * Note: We use a union type for the second parameter because TypeScript cannot reliably disambiguate
37023
+ * between ToolAnnotations and ZodRawShape during overload resolution, as both are plain object types.
37024
+ */
37025
+ tool<Args extends ZodRawShape>(name: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
37026
+ /**
37027
+ * Registers a tool `name` (with a description) taking either parameter schema or annotations.
37028
+ * This unified overload handles both `tool(name, description, paramsSchema, cb)` and
37029
+ * `tool(name, description, annotations, cb)` cases.
37030
+ *
37031
+ * Note: We use a union type for the third parameter because TypeScript cannot reliably disambiguate
37032
+ * between ToolAnnotations and ZodRawShape during overload resolution, as both are plain object types.
37033
+ */
37034
+ tool<Args extends ZodRawShape>(name: string, description: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
37035
+ /**
37036
+ * Registers a tool with both parameter schema and annotations.
35414
37037
  */
35415
- tool<Args extends ZodRawShape>(name: string, paramsSchema: Args, cb: ToolCallback<Args>): RegisteredTool;
37038
+ tool<Args extends ZodRawShape>(name: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
35416
37039
  /**
35417
- * Registers a tool `name` (with a description) accepting the given arguments, which must be an object containing named properties associated with Zod schemas. When the client calls it, the function will be run with the parsed and validated arguments.
37040
+ * Registers a tool with description, parameter schema, and annotations.
35418
37041
  */
35419
- tool<Args extends ZodRawShape>(name: string, description: string, paramsSchema: Args, cb: ToolCallback<Args>): RegisteredTool;
37042
+ tool<Args extends ZodRawShape>(name: string, description: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
37043
+ /**
37044
+ * Registers a tool with a config object and callback.
37045
+ */
37046
+ registerTool<InputArgs extends ZodRawShape, OutputArgs extends ZodRawShape>(name: string, config: {
37047
+ description?: string;
37048
+ inputSchema?: InputArgs;
37049
+ outputSchema?: OutputArgs;
37050
+ annotations?: ToolAnnotations;
37051
+ }, cb: ToolCallback<InputArgs>): RegisteredTool;
35420
37052
  /**
35421
37053
  * Registers a zero-argument prompt `name`, which will run the given function when the client calls it.
35422
37054
  */
@@ -35491,20 +37123,29 @@ declare class ResourceTemplate {
35491
37123
  * Callback for a tool handler registered with Server.tool().
35492
37124
  *
35493
37125
  * Parameters will include tool arguments, if applicable, as well as other request handler context.
37126
+ *
37127
+ * The callback should return:
37128
+ * - `structuredContent` if the tool has an outputSchema defined
37129
+ * - `content` if the tool does not have an outputSchema
37130
+ * - Both fields are optional but typically one should be provided
35494
37131
  */
35495
37132
  type ToolCallback<Args extends undefined | ZodRawShape = undefined> = Args extends ZodRawShape ? (args: objectOutputType<Args, ZodTypeAny>, extra: RequestHandlerExtra<ServerRequest, ServerNotification>) => CallToolResult | Promise<CallToolResult> : (extra: RequestHandlerExtra<ServerRequest, ServerNotification>) => CallToolResult | Promise<CallToolResult>;
35496
37133
  type RegisteredTool = {
35497
37134
  description?: string;
35498
37135
  inputSchema?: AnyZodObject;
37136
+ outputSchema?: AnyZodObject;
37137
+ annotations?: ToolAnnotations;
35499
37138
  callback: ToolCallback<undefined | ZodRawShape>;
35500
37139
  enabled: boolean;
35501
37140
  enable(): void;
35502
37141
  disable(): void;
35503
- update<Args extends ZodRawShape>(updates: {
37142
+ update<InputArgs extends ZodRawShape, OutputArgs extends ZodRawShape>(updates: {
35504
37143
  name?: string | null;
35505
37144
  description?: string;
35506
- paramsSchema?: Args;
35507
- callback?: ToolCallback<Args>;
37145
+ paramsSchema?: InputArgs;
37146
+ outputSchema?: OutputArgs;
37147
+ annotations?: ToolAnnotations;
37148
+ callback?: ToolCallback<InputArgs>;
35508
37149
  enabled?: boolean;
35509
37150
  }): void;
35510
37151
  remove(): void;