upload_file
Upload files to a web page's file input element by providing absolute file paths, bypassing the operating system file picker.
Instructions
Set file(s) on an element by path, without the OS file picker. Returns {success}. Provide absolute paths that exist on the server. For a picker opened by a button, target the underlying file input's selector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File paths to upload | |
| selector | Yes | CSS selector for the file input | |
| session_id | Yes | Session ID |