Upload file
browser_upload_fileUploads files to a file input or triggers a file chooser and supplies the selected files during browser automation.
Instructions
Set files on a file input (or click a button that opens a file chooser and feed it the files).
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" | |
| paths | Yes | Absolute file paths | |
| selector | No | Playwright selector (CSS, text=..., role=..., xpath=...) used when no ref is given | |
| viaChooser | No |