diff --git a/mateclaw-server/src/main/resources/docs/en/mcp.md b/mateclaw-server/src/main/resources/docs/en/mcp.md index 9b53eb38..2fe0bce5 100644 --- a/mateclaw-server/src/main/resources/docs/en/mcp.md +++ b/mateclaw-server/src/main/resources/docs/en/mcp.md @@ -576,7 +576,7 @@ Subprocesses are cleaned up on normal shutdown. If MateClaw was force-killed (`k ## Structured charts, tables and product cards -The web console can render a successful MCP tool's `structuredContent` directly, without asking the model to rewrite it into Markdown. Results stay attached to the tool call and are restored when reopening the conversation. Existing text responses remain supported. +The web console can render a successful MCP tool's `structuredContent` directly, without asking the model to rewrite it into Markdown. Structured tool results appear below the answer after the turn ends, rather than inside the reasoning/tool timeline. Stopped or failed turns retain results from successful tool calls; failed or unfinished calls are excluded. The same metadata restores these results when reopening a conversation. Existing text responses remain supported. Return a normal MCP `tools/call` result with a text summary and the following application-specific UI envelope: diff --git a/mateclaw-server/src/main/resources/docs/zh/mcp.md b/mateclaw-server/src/main/resources/docs/zh/mcp.md index 96ce3b0b..bc968638 100644 --- a/mateclaw-server/src/main/resources/docs/zh/mcp.md +++ b/mateclaw-server/src/main/resources/docs/zh/mcp.md @@ -543,7 +543,7 @@ user = claims["sub"] # 验签通过才相信 ## 工具结果直接展示图表、表格与商品卡片 -Web 控制台支持直接渲染 MCP 工具成功返回的 `structuredContent`,无需模型重新包装为 Markdown。展示内容绑定到对应工具调用,重新打开会话时也能恢复;原有文本回复继续兼容。 +Web 控制台支持直接渲染 MCP 工具成功返回的 `structuredContent`,无需模型重新包装为 Markdown。展示数据绑定到对应工具调用;本轮回复结束后,图表、表格和商品卡片统一显示在回复正文下方,不占用思考及工具执行过程。中止或失败的回复仍展示已经成功取得的结果;失败或未完成工具的结果不展示。重新打开会话可恢复,原有文本回复继续兼容。 MCP 的 `tools/call` 返回值可同时提供文字摘要和下面的界面数据: diff --git a/mateclaw-ui/src/components/chat/MessageBubble.vue b/mateclaw-ui/src/components/chat/MessageBubble.vue index d7f1b703..bc85180f 100644 --- a/mateclaw-ui/src/components/chat/MessageBubble.vue +++ b/mateclaw-ui/src/components/chat/MessageBubble.vue @@ -73,7 +73,7 @@