download_file
Click a trigger and capture the downloaded file. Verify exports (CSV, PDF, invoices) with returned path, size, sha256, and text preview.
Instructions
Click a trigger and capture the file it downloads — the honest way to verify exports (CSV, PDF, invoices). The download waiter is armed BEFORE the click so fast downloads aren't missed, and the click uses the same overlay-fallback as click_element (export buttons inside Radix menus work). Returns the saved path, size, sha256, source URL, and for small text files a text_head preview so content can be asserted without another call. Files land in data/downloads/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Max ms to wait for the download to start (default: 30000) | |
| selector | Yes | CSS selector of the element whose click starts the download | |
| session_id | Yes | Session ID |