upload_file
Set a file on an input[type=file] element from the server's filesystem using DataTransfer. Ideal for testing file uploads without manual selection.
Instructions
Set a file on input[type=file] from the server filesystem via DataTransfer (max 200 MB; over 6 MB it travels in pieces). Keys and credentials (~/.ssh, ~/.aws, ~/.gnupg, .env*, *.pem, .key, id_…) are refused, and a --read-root on the server limits the readable tree: the call fails with an error, nothing is read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path on the server machine; keys and credentials (~/.ssh, .env, *.pem) refused | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| selector | Yes | The file input to fill; ">>>" pierces shadow DOM | |
| mime_type | No | Default: inferred from extension |