file_upload
Upload files directly to a file input element on the page using its reference ID, avoiding the native file picker dialog.
Instructions
Upload one or multiple files to a file input element on the page. Do not click on file upload buttons or file inputs -- clicking opens a native file picker dialog that you cannot see or interact with. Instead, use read_page or find to locate the file input element, then use this tool with its ref to upload files directly.
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>",
"tabId": "<tabId>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element reference ID of the file input from read_page or find tools (e.g., "ref_1", "ref_2"). | |
| files | No | Files to upload, as base64-encoded bytes. | |
| paths | No | DEPRECATED. Use `files` instead. | |
| tabId | Yes | Tab ID where the file input is located. Use tabs_context first if you don't have a valid tab ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provenance | No | ||
| interactionReceipt | No |