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 changed files with 49 additions and 4 deletions

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'. */