From 4744d563c37930c08d7940f3bf52dd88089f21f4 Mon Sep 17 00:00:00 2001 From: alu Date: Mon, 23 Feb 2026 16:11:25 -0800 Subject: [PATCH] fix: tools-call-simple-text now fails when tool returns isError: true --- src/scenarios/server/tools.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scenarios/server/tools.ts b/src/scenarios/server/tools.ts index 7ecbfdd..bfb40b4 100644 --- a/src/scenarios/server/tools.ts +++ b/src/scenarios/server/tools.ts @@ -127,6 +127,8 @@ Implement tool \`test_simple_text\` with no arguments that returns: // Validate response const errors: string[] = []; + if ((result as any).isError === true) + errors.push('Tool returned an error instead of content'); const content = (result as any).content; if (!content) errors.push('Missing content array'); if (!Array.isArray(content)) errors.push('content is not an array');