From de331d78ef958a5c888dc87d0f077cecaf4ee6f7 Mon Sep 17 00:00:00 2001 From: Chih-Tao Lee Date: Thu, 2 Jul 2026 10:26:11 -0400 Subject: [PATCH] fix(acp): include structuredContent from MCP tool response (#10128) --- ui/desktop/src/acp/adapter/tools.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/desktop/src/acp/adapter/tools.ts b/ui/desktop/src/acp/adapter/tools.ts index 7b9af6b761..7a571bc497 100644 --- a/ui/desktop/src/acp/adapter/tools.ts +++ b/ui/desktop/src/acp/adapter/tools.ts @@ -184,11 +184,17 @@ function toolResultValue( update: ToolCallUpdate, mcpAppMeta: DesktopMcpAppMeta | undefined ): ToolResultValue { - return { + const toolResult: ToolResultValue = { content: toolResultContent(update), isError: false, ...(mcpAppMeta ? { _meta: mcpAppMeta } : {}), }; + + if (update.rawOutput !== undefined) { + toolResult.structuredContent = update.rawOutput; + } + + return toolResult; } function toolResultContent(update: ToolCallUpdate): GooseContentBlock[] {