Upload files to a file input
file_uploadUpload local files to a browser file input by element ref using absolute local paths; requires debugger tier, and cross-site frames must be opened in their own tab.
Instructions
Set local files on a identified by ref (from read_page/find), via the debugger. Pass absolute local paths. Works for any file type including images. Requires the debugger tier (yellow 'debugging this browser' banner). A file input inside a cross-site frame runs in its own process, out of the debugger's reach: the call fails with an error that says so; open that frame's page in its own tab and upload there.
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": {
"ref": "<ref>",
"paths": "<paths>",
"tabId": "<tabId>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | File-input element ref from read_page/find | |
| paths | Yes | Absolute local file paths to upload | |
| tabId | Yes | Target tab ID (must be in the MCP group) |