browser.read_download
Reads a downloaded file as text (CSV, JSON, TXT) by download ID or the latest completed download. Returns paged content; binary files are refused and their artifact URL is provided.
Instructions
Read a downloaded file as text (CSV, JSON, TXT, HTML, ...), by download_id from browser.list_downloads or, if omitted, the latest completed download. Paged like browser.get_html. Binary files (PDF, XLSX, images) are refused with their artifact URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Character to start from. A result with truncated=true gives the next_offset to continue from. | |
| max_chars | No | Most characters to return. | |
| session_id | No | Target session id, from browser.create_session or browser.list_sessions. Optional when exactly one session is live; observe and act tools create one when none is. | |
| download_id | No | id from browser.list_downloads. Omit to read the most recent completed download. |