fix(MCP Client Tool Node): Stringify tool result (#14554)

This commit is contained in:
Elias Meire
2025-04-14 21:22:07 +02:00
committed by GitHub
parent 7723a138a1
commit 390c508946
3 changed files with 7 additions and 4 deletions

View File

@@ -395,7 +395,9 @@ export function logWrapper<
logAiEvent(executeFunctions, 'ai-tool-called', { ...inputData, response });
executeFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);
return response;
if (typeof response === 'string') return response;
return JSON.stringify(response);
};
}
}