browser_file_upload
Upload a local file to a selected input element on a webpage. Provide the CSS selector of the input and the file path to complete the upload.
Instructions
Upload a file to a file input element
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_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the file to upload | |
| selector | Yes | CSS selector of the file input element |