Drag-drop a local file onto a target
file_dropDrop a local file onto a non-file-input dropzone by its element ref and absolute path, enabling browser drag-and-drop uploads for custom dropzones.
Instructions
Drop a local file onto a drag-and-drop target identified by ref (from read_page/find, main-frame) — for dropzones that aren't a (use file_upload/upload_image for those). Pass an absolute local path; the browser attaches the real file via the native CDP drag pipeline.
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": {
"ref": "<ref>",
"path": "<path>",
"tabId": "<tabId>"
},
"name": "file_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Dropzone element ref from read_page/find (main-frame) | |
| path | Yes | Absolute local file path to drop | |
| tabId | Yes | Target tab ID (must be in the MCP group) |