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 {
|
return {
|
||||||
content: toolResult.content as unknown as CallToolResult['content'],
|
content: toolResult.content as unknown as CallToolResult['content'],
|
||||||
structuredContent: toolResult.structuredContent as { [key: string]: unknown } | undefined,
|
structuredContent: toolResult.structuredContent as { [key: string]: unknown } | undefined,
|
||||||
|
_meta: toolResult._meta,
|
||||||
};
|
};
|
||||||
}, [toolResult]);
|
}, [toolResult]);
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ export type McpAppToolCancelled = McpUiToolCancelledNotification['params'];
|
|||||||
export type McpAppToolResult = {
|
export type McpAppToolResult = {
|
||||||
content: Content[];
|
content: Content[];
|
||||||
structuredContent?: unknown;
|
structuredContent?: unknown;
|
||||||
|
_meta?: { [key: string]: unknown };
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SamplingMessage = {
|
export type SamplingMessage = {
|
||||||
|
|||||||
Reference in New Issue
Block a user