diff --git a/src/core/assistant-message/NativeToolCallParser.ts b/src/core/assistant-message/NativeToolCallParser.ts index ac616e89f33..f02bb8003bc 100644 --- a/src/core/assistant-message/NativeToolCallParser.ts +++ b/src/core/assistant-message/NativeToolCallParser.ts @@ -756,8 +756,11 @@ export class NativeToolCallParser { return result } catch (error) { - console.error(`Failed to parse tool call arguments:`, error) - console.error(`Error details:`, error instanceof Error ? error.message : String(error)) + console.error( + `Failed to parse tool call arguments: ${error instanceof Error ? error.message : String(error)}`, + ) + + console.error(`Tool call: ${JSON.stringify(toolCall, null, 2)}`) return null } }