Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🖖Spring AI + MCP: can a tool return an image (media) to the LLM? #4551

Unanswered
RomanSkochko asked this question in Q&A
Discussion options

We’re building a Spring Boot app that uses Spring AI as an MCP client and a Spring MCP server, and we need a tool that can return a real file—starting with images (png/jpg)—so the LLM can actually see and analyze it.

Right now the tool returns JSON with a presigned S3 URL; the model treats it as plain text, echoes the link, and often says it can’t read the file, so the response is just a URL instead of an analysis/description of the image.

Advice is welcome, thank you!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /