browser_upload_file
Attach local files to a file input by setting its files from absolute paths, using an element ref or CSS selector in the active or specified browser tab.
Instructions
Set local files on an .
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_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from browser_snapshot, e.g. "e12". Preferred over selector. | |
| paths | Yes | Absolute file paths. | |
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| selector | No | CSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too. |