From ffcc282a4be1822b97710788a994e416abf9ad38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Thu, 13 Aug 2026 14:28:13 +0200 Subject: [PATCH] Update RegisteredTool#inputSchema type from string to object --- index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3a09336..c6392d0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -101,9 +101,10 @@ declare namespace WebMCP { */ description: string; /** - * A stringified JSON Schema object describing the expected input parameters for the tool. + * A JSON Schema object describing the expected input parameters for the tool. + * It is a deep copy of the schema provided at tool registration, via `ModelContextTool.inputSchema`. */ - inputSchema?: string; + inputSchema?: object; /** * The Window of the document that registered the tool. */