browser_upload_file
Set a local file on a page's file input using a CSS selector. Provide the file path and selector to automate uploads.
Instructions
Set files on a file input matched by selector. path is the local file.
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>",
"path": "<path>"
},
"name": "browser_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| selector | Yes |