[Python] When using fastmcp, how to deal with images

Discussão em 'Python' iniciado por Stack, Junho 19, 2025.

  1. Stack

    Stack Membro Participativo

    I'm building an MCP server using Pillow, but I'm confused about what format I should use to represent images in the tools. If I use Base64 encoding, the data becomes too long for the LLM to handle efficiently. On the other hand, if I just use file paths, the LLM won't have access to the actual image data.

    Continue reading...

Compartilhe esta Página