browser_file_upload
Upload local files to a file input using a CSS selector or aria ref, including inside iframes.
Instructions
Upload files to a by CSS selector or aria ref.
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": {
"paths": "<paths>"
},
"name": "browser_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | aria-ref from browser_snapshot, for example e12. Provide exactly one of selector or ref. | |
| paths | Yes | Local file paths to upload. | |
| timeout | No | ||
| selector | No | CSS selector. Provide exactly one of selector or ref. | |
| frameSelector | No | Optional CSS selector for an iframe. When set, selector/ref resolve inside that frame. |