Browser File Upload
browser_file_uploadUpload one or more local files to a file input element using its CSS selector and absolute file paths; supports single and multiple inputs.
Instructions
Upload one or more files to a file input element. Provide the CSS selector of the element and an array of absolute file paths to upload. Works with single and multiple file inputs. Examples: browser_file_upload({selector: "input[type=file]", paths: ["/home/user/document.pdf"]}) or multiple files: browser_file_upload({selector: "#photos", paths: ["/tmp/img1.png", "/tmp/img2.png"]})
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>",
"paths": "<paths>"
},
"name": "browser_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. | |
| paths | Yes | Array of absolute file paths to upload. | |
| selector | Yes | CSS selector of the <input type="file"> element. | |
| sessionId | No | Puppeteer session ID. Skips mode selection. |