Is there a way to download a file with this MCP? #2387
|
For example, what happens if you use Does it return the file bytes in the response? Or is there a separate mechanism for downloading the file? |
Replies: 1 comment 1 reply
|
Current
For example: With Fetch it soon after navigation because Chrome may no longer retain an older response body. This is based on the current |
navigate_pageitself does not return the raw PDF bytes. It performs the navigation and returns page state.Current
chrome-devtools-mcphas a separate network-response path:list_network_requests, optionally filtering fordocument.reqid.get_network_requestwith thatreqidand aresponseFilePath.For example:
With
responseFilePath, the implementation callsresponse.buffer()and saves the raw bytes. Without it, the response is formatted for the MCP result rather than being a reliable binary-download mechanism. You can rename the saved file to.pdf…