Skip to content

Commit 91ee0a8

Browse files
authored
fix: handle image value correctly for mcp BlobResourceContents (#2753)
1 parent 6cbbffc commit 91ee0a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astrbot/core/agent/runners/tool_loop_agent_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ async def _handle_function_tools(
258258
)
259259
yield MessageChain(
260260
type="tool_direct_result"
261-
).base64_image(res.content[0].data)
261+
).base64_image(resource.blob)
262262
else:
263263
tool_call_result_blocks.append(
264264
ToolCallMessageSegment(

0 commit comments

Comments
 (0)