Upload local file to input
browser_upload_fileAttach a local file from disk (up to 25 MB) to a file input on the controlled page to complete uploads.
Instructions
Attach a local file (up to 25 MB) from disk to a file input () on the controlled 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": {
"filePath": "<filePath>"
},
"name": "browser_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref of the <input type='file'> element. | |
| tabId | No | Controlled tab id. | |
| filePath | Yes | Local file path on disk to upload. | |
| mimeType | No | Optional MIME type override (inferred from extension if omitted). | |
| selector | No | CSS selector of the <input type='file'> element. |