browser_upload_file
Upload files directly to any file input on the page using Chrome DevTools, bypassing the file dialog. For drag-and-drop zones without a file input, use browser_drop_file.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "browser_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Single file path (alternative to files array) | |
| 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"]) |