← sources

What's the best way to send any arbitrary file from an mcp server to an llm agent ?

source: reddit (reddit:AI_Agents)published 2026-09-28 07:39ingested 2026-09-29 02:36

retained text

I'm building an mcp server that downloads files and hands them to a copilot cli agent for analysis.

The files can be pdf's with images, office docs, excel, png etc...

Retuning base64 blobs seems unreliable.

What's the right approach?

document fetched 2026-09-29 00:19 · canonical https://reddit.com/r/AI_Agents/comments/1ws87vu/whats_the_best_way_to_send_any_arbitrary_file