browser_upload_file
Set files on a page's file input directly through the Chrome Debugger API, bypassing the native file picker.
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. Files must be regular files inside the working directory the MCP server runs in - folders, symlinks and hardlinks that point outside it are refused.
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"]) |