browser_file_upload
Upload local files to a web page by targeting a file input or chooser button; no file dialog appears.
Instructions
Upload local files through a file input. ref may be the file input itself or the button that opens the file chooser; no dialog is shown.
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": {
"element": "<element>",
"ref": "<ref>",
"paths": "<paths>"
},
"name": "browser_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Exact target element reference from the page snapshot | |
| paths | Yes | Absolute paths of the files to upload (`~` is expanded) | |
| element | Yes | Human-readable element description used to obtain permission to interact with the element | |
| snapshot | No | Also return the page snapshot after the action (default: no). Use it when you need to see the result right away. |