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.
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 |