browser_upload_file
Uploads a local file to an input[type=file] element by CSS selector, enabling automated form submissions and file selection in browser workflows.
Instructions
Upload a file to a file input element on the page
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": {
"selector": "<selector>",
"filePath": "<filePath>"
},
"name": "browser_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or relative local path of the file to upload | |
| selector | Yes | CSS selector of an input[type=file] element |