diff --git a/services/minecraft/src/debug/tool-executor.ts b/services/minecraft/src/debug/tool-executor.ts index c94e43067..4d0297ac6 100644 --- a/services/minecraft/src/debug/tool-executor.ts +++ b/services/minecraft/src/debug/tool-executor.ts @@ -147,7 +147,8 @@ export class ToolExecutor { curr = curr._def.schema } else if (typeId === 'ZodDefault') { - defaultValue = curr._def.defaultValue() + // In Zod 4, defaultValue is the value itself, not a function + defaultValue = curr._def.defaultValue curr = curr._def.innerType } else {