diff --git a/scripts/verify/electron/tool-contracts.mjs b/scripts/verify/electron/tool-contracts.mjs index c5afa9f1c..0de31cb7b 100644 --- a/scripts/verify/electron/tool-contracts.mjs +++ b/scripts/verify/electron/tool-contracts.mjs @@ -88,7 +88,10 @@ window.loadFile("renderer.html");require("node:fs").writeFileSync(${JSON.stringi ajv.compile(tool.inputSchema); return [ tool.name, - tool.outputSchema ? ajv.compile(tool.outputSchema) : undefined, + tool.outputSchema + ? (tool.outputSchema.$id && ajv.getSchema(tool.outputSchema.$id)) || + ajv.compile(tool.outputSchema) + : undefined, ]; }), );