> ## 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_fill

> Replace the contents of a text input, textarea, or contenteditable.

Replace the contents of a text input, textarea, or contenteditable. Use browser\_select for \<select>, browser\_click for checkboxes, browser\_upload for files.

## 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="text" type="string" required>
   
</ParamField>

## Example

```json theme={null}
{
  "tabId": 1234,
  "ref": "e7",
  "text": "jane@example.com"
}
```
