browser_upload_file
Upload files to a page's file input element using the Chrome Debugger API, skipping the file dialog. Specify absolute file paths and optional CSS selector.
Instructions
Upload a file to a element on the page. Uses Chrome Debugger API to set files programmatically — no dialog needed. For drag-drop zones without visible file input use browser_drop_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Single file path (alternative to files array). Alias: `file_path`. | |
| files | Yes | Array of absolute file paths to upload. E.g. ["/Users/me/photo.jpg"] | |
| selector | No | CSS selector for the file input (default: input[type="file"]) |