Files
open-webui/backend/open_webui
Classic298 6f6792d484 fix: pass MCP tool images to the model, not only to the UI (#30358)
When an MCP tool returns an image (e.g. a Home Assistant camera snapshot), the
snapshot shows up in the tool call section but the model never sees it: it
answers that there is no image. Only images arriving as inline data URIs were
attached to the model request; MCP images are uploaded to Files first and their
file URL was treated as display-only.

Now an image file item with a file URL is attached to the model request as an
input_image part in addition to staying in the tool call's displayed files. The
existing URL-to-base64 step already resolves file URLs, so the model receives
the image bytes; verified on a running instance with a mock MCP server and a
mock upstream (the second upstream request carries the byte-identical JPEG).
Inline data-URI images keep their existing model-only handling.

Fixes #30327
2026-09-22 11:34:57 -04:00
..
2026-09-06 17:13:32 -04:00
2026-08-25 16:53:53 -04:00
2026-09-21 10:19:59 -04:00
2026-09-21 14:43:04 -04:00
2026-09-21 11:21:42 -04:00
2026-09-06 17:27:30 -04:00
2026-09-06 17:13:32 -04:00
2026-09-21 08:59:39 -04:00
2026-09-21 11:09:09 -04:00
2026-08-29 16:14:32 -04:00
2026-09-21 11:35:30 -04:00
2026-08-16 23:21:00 -07:00
2026-09-21 08:59:39 -04:00
2026-09-21 08:59:39 -04:00