browser_drop_file
Upload files to drag-drop zones without visible file inputs by discovering hidden input elements in the zone's subtree or parent elements. Resolves failed uploads when no file input is displayed.
Instructions
Upload a file by finding a hidden within a drag-drop zone's subtree (or parent up to 2 levels). Use when browser_upload_file fails because the dropzone has no visible file input. Returns clear error if no input is found anywhere — pure drop-zones without backing inputs require manual handling.
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": {
"selector": "<selector>"
},
"name": "browser_drop_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Single absolute file path | |
| files | No | Array of absolute file paths | |
| selector | Yes | CSS selector for the drop-zone target element (e.g. ".upload-area") |