browser_upload_file_direct
Bypass the file-chooser modal by directly setting local file paths on a file input element for automated uploads.
Instructions
Directly sets input files on a file input element bypassing the file-chooser modal requirement.
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": {
"target": "<target>",
"paths": "<paths>"
},
"name": "browser_upload_file_direct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Array of local file paths to upload. | |
| target | Yes | Selector or snapshot ID of the file input element. |