feat: Add resource_link content type support to ToolResults component

Add ResourceLinkView component for displaying resource links
This commit is contained in:
Nandha Reddy 2025-06-26 20:22:28 +10:00
commit c4587bafb8
No known key found for this signature in database
GPG key ID: 09ED40FC0F563333

View file

@ -1,4 +1,5 @@
import JsonView from "./JsonView";
import ResourceLinkView from "./ResourceLinkView";
import {
CallToolResultSchema,
CompatibilityCallToolResult,
@ -200,6 +201,14 @@ const ToolResults = ({ toolResult, selectedTool }: ToolResultsProps) => {
) : (
<JsonView data={item.resource} />
))}
{item.type === "resource_link" && (
<ResourceLinkView
uri={item.uri}
name={item.name}
description={item.description}
mimeType={item.mimeType}
/>
)}
</div>
))}
</div>