fix: retain dynamic tool schema defaults

This commit is contained in:
Tianyi Cui
2026-07-14 05:23:17 +08:00
parent f1373cd7ab
commit 863116daaf
5 files changed
+49 -4

No files matched your search

+2
View File
@@ -57,6 +57,8 @@ interface SchemaProp {
description?: string
/** Enum of allowed values (strings only). */
enum?: string[]
/** Default value. */
default?: unknown
/** Nested properties for type: 'object'. */
properties?: SchemaSpec
/** Items schema for type: 'array'. */