mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 12:25:45 -04:00
[DOCS]: Does the MCP client support the picture type in the message? #233
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zjrjb on GitHub (Aug 28, 2025).
Type of Documentation Change
Error/Typo fix
Documentation Page URL or Path
https://modelcontextprotocol.io/specification/2025-06-18/server/tools#image-content
Current Content
No response
Suggested Changes
I find that when MCP Tools return image, such as:
{
"type": "image",
"data": "base64-encoded-data",
"mimeType": "image/png"
"annotations": {
"audience": ["user"],
"priority": 0.9
}
}
then the MCP Client will ignore it. Does the MCP client support the picture type in the message?
Reason for Change
No response
Code of Conduct
@dosubot[bot] commented on GitHub (Aug 28, 2025):
Hi @zjrjb! I'm Dosu and I’m helping the dify-docs team.
The MCP protocol and client code do support messages of type
"image"—the schema and message handling logic are designed to accept image content with base64 data and MIME type. However, in practice, the Dify MCP server's tool invocation is currently hardcoded to return only text results and includes a comment stating that image support is "not supported yet" for tool payloads. This means that even though the client can technically process image messages, the server does not send them, so the client ends up ignoring image-type messages from tools. You can see this in the server code and comments here.If you need to document this, it's accurate to say:
The MCP client and protocol support image-type messages, but the current server implementation does not deliver image payloads to the client, so image messages from tools are ignored.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
