From 6222d35735a1be9044e6f9be50aef398466f9c98 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 15 Dec 2025 23:16:29 +0530 Subject: [PATCH] fix: use parsed arguments instead of toolcall.arguments --- gui/src/redux/thunks/callToolById.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/src/redux/thunks/callToolById.ts b/gui/src/redux/thunks/callToolById.ts index d0da3465fca..6bcaa0fff74 100644 --- a/gui/src/redux/thunks/callToolById.ts +++ b/gui/src/redux/thunks/callToolById.ts @@ -86,7 +86,13 @@ export const callToolById = createAsyncThunk< } else { // Tool is called on core side const result = await extra.ideMessenger.request("tools/call", { - toolCall: toolCallState.toolCall, + toolCall: { + ...toolCallState.toolCall, + function: { + ...toolCallState.toolCall.function, + arguments: JSON.stringify(toolCallState.parsedArgs), + }, + }, }); if (result.status === "error") { throw new Error(result.error);