Skip to content

Commit bf928ad

Browse files
committed
fix access_mcp_resource failing to parse image
1 parent b45252d commit bf928ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tools/accessMcpResourceTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function accessMcpResourceTool(
7373

7474
resourceResult?.contents.forEach((item) => {
7575
if (item.mimeType?.startsWith("image") && item.blob) {
76-
images.push(item.blob)
76+
images.push(`data:${item.mimeType};base64,` + item.blob)
7777
}
7878
})
7979

0 commit comments

Comments
 (0)