Repository navigation
|
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
|
No dedicated download tool today, and The reliable way to get the bytes out is through the Network tools:
If you're executing on a page you control and CORS permits reading the response, To actually support downloads (attachment handling, download directory control via |
No dedicated download tool today, and
navigate_pagedoesn't return file bytes. When a response is treated as a download (e.g.Content-Disposition: attachment), Chrome saves it through its own download handling and the MCP server doesn't report where it went, so don't rely on that path.The reliable way to get the bytes out is through the Network tools:
navigate_page(ornew_page). For your PDF example the built-in viewer renders it, but the document request is still recorded.list_network_requestswithresourceTypes: ["document"](addincludePreservedRequests: trueif you've navigated since) and note thereqidof the file request.get_network_requestwith thatreqidandr…