upload_file
Upload local files to a file input element by CSS selector or element ref, bypassing the OS file dialog. Specify absolute file paths.
Instructions
Set local file(s) on a file (target by selector or ref) — uploads without the OS dialog. Requires --enable-uploads. files are absolute local paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from a prior read (exactly one of selector|ref) | |
| files | Yes | ||
| tabId | No | Target tab id (defaults to the active tab) | |
| selector | No | CSS selector (exactly one of selector|ref) |