mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
fix(apps): forward _meta in tool results to MCP Apps (#7476)
This commit is contained in:
@@ -637,6 +637,7 @@ export default function McpAppRenderer({
|
||||
return {
|
||||
content: toolResult.content as unknown as CallToolResult['content'],
|
||||
structuredContent: toolResult.structuredContent as { [key: string]: unknown } | undefined,
|
||||
_meta: toolResult._meta,
|
||||
};
|
||||
}, [toolResult]);
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ export type McpAppToolCancelled = McpUiToolCancelledNotification['params'];
|
||||
export type McpAppToolResult = {
|
||||
content: Content[];
|
||||
structuredContent?: unknown;
|
||||
_meta?: { [key: string]: unknown };
|
||||
};
|
||||
|
||||
export type SamplingMessage = {
|
||||
|
||||
Reference in New Issue
Block a user