browser_upload_file
Upload local files to a web page by targeting a file input, upload button, or dropzone. Provide absolute file paths; it sets the input's files directly or simulates drag-and-drop when needed.
Instructions
Attach local file(s) to the page WITHOUT opening the OS file picker (the picker cannot be automated — never click elements that open it). Pass the ref of a file input (hidden ones appear in snapshots as 'file-input ... [hidden]'), or of an upload button/dropzone near it, plus absolute local file paths. Sets the input's files directly, or simulates a drag-and-drop when no file input is found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Ref of the file input, upload button, or dropzone. | |
| mode | No | auto (default): find and fill the file input. drop: force a drag-and-drop onto the ref'd element (for dropzones). | |
| paths | Yes | Absolute paths of local files to attach. |