download_file
Click a trigger to capture the downloaded file's path, size, SHA-256, text preview, and response headers; it flags navigation instead of download for precise must-download assertions.
Instructions
Click a trigger and capture the file it downloads: path, size, sha256, text preview, plus the response's content_type and content_disposition. If the click NAVIGATES to the file instead (no Content-Disposition: attachment), the result says navigated_instead=true with the final_url — the precise assertion for "must download, not open" fixes. Falls back to a context refetch (flagged capture_method) when the browser artifact is empty
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"selector": "<selector>"
},
"name": "download_file"
}
}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 |