> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browspark.krishm.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# browser_upload

> Set files on an input type=file by ref.

Set files on an \<input type=file> by ref. Paths must be readable by the browser machine.

## Parameters

<ParamField body="tabId" type="integer">
  Target tab id from browser\_tabs, which lists tabs across all windows. Defaults to the agent's most recently opened usable tab, or the only usable tab. Otherwise select a listed tabId.
</ParamField>

<ParamField body="ref" type="string" required>
  Element ref from browser\_snapshot, e.g. "e12"
</ParamField>

<ParamField body="files" type="string[]" required>
   
</ParamField>

## Example

```json theme={null}
{
  "tabId": 1234,
  "ref": "e15",
  "files": [
    "/Users/me/Desktop/avatar.png"
  ]
}
```
