Download file from a website
I'm trying to download a file from a website using an LLM + the following MCPs - puppeteer, filesystem, fetch, and memory: https://pastebin.com/bgysAe39 The file may be PDF, image, etc. Suggestions for a better way to approach / MCP for me to experiment with? Thanks in advance! Response from the LLM: The fetch tool retrieved content from the URL, but it indicates that the content type is image/tiff and cannot be simplified to markdown. It returned the raw content, which appears to be binary data (likely the image data of the TIFF file). This confirms that the URL obtained from the puppeteer_evaluate step is indeed a direct link to a file. However, since the file is a TIFF image and not a text-based format, the fetch tool returned its raw binary content, which is not directly readable as text. While fetch successfully retrieved the file content, I cannot interpret or save it as a human-readable file like a PDF with the current tools. The file system tools can save text content, but they are not designed to handle arbitrary binary data like this TIFF image. Therefore, even though I managed to get the direct file URL, I cannot complete the task of downloading and saving the file in a usable format with the current capabilities. To summarize: 1. I successfully used puppeteer to navigate to the page with the sales information. 2. I used puppeteer_evaluate to find a link and extract a potential file URL. 3. I used fetch to retrieve content from that URL, confirming it's a TIFF image file. 4. I cannot save this binary image data as a file using the current file system tools. I have reached a point where I can access the file content's raw data, but I lack the ability to process and save this specific file type (TIFF image).