Skip to content

MCP Tools 如何获取上传的图片内容 #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
songjiayang opened this issue Apr 6, 2025 · 3 comments
Closed

MCP Tools 如何获取上传的图片内容 #196

songjiayang opened this issue Apr 6, 2025 · 3 comments

Comments

@songjiayang
Copy link

想添加图生图的功能,但是MCP tool 中无法获取上传的图片 base64 字符串。

效果如下:

Image
@deepinfect
Copy link
Collaborator

如果发送的消息中增加了base64的内容,会撑爆llm的请求。最好是用文件路径加上解析的mcp服务来解决这个问题。

@songjiayang
Copy link
Author

songjiayang commented Apr 11, 2025

这里其实本意想把文件路径传给 mcp tool,但是不需要通过文件名描述的方式,而是选择文件。

是否可以增加一个选项,选择文件(仅提取文件路径)

@zerob13
Copy link
Collaborator

zerob13 commented Apr 14, 2025

0.0.15版本已经支持

@zerob13 zerob13 closed this as completed Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants