Upload files
browser_file_uploadUpload files to a file input element using a snapshot reference from an isolated browser session.
Instructions
Set files on a file input (by ref from browser_snapshot).
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": {
"sessionId": "<sessionId>",
"ref": "<ref>",
"element": "<element>",
"paths": "<paths>"
},
"name": "browser_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from the latest browser_snapshot (e.g. 'e12') | |
| paths | Yes | File paths (confined to the upload dir if configured) | |
| element | Yes | Human description of the element (for logs/errors) | |
| sessionId | Yes | Id of the isolated browser session |