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

> Read page content: visible text, markdown (main content converted with headings, lists, links, code, tables), links, tables (as row arrays), or raw HTML.

Read page content: visible text, markdown (main content converted with headings, lists, links, code, tables), links, tables (as row arrays), or raw HTML. Optionally scoped to a ref.

## 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="what" type="enum" required default="text">
  One of: `text`, `markdown`, `links`, `tables`, `html`.
</ParamField>

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

## Example

```json Main content as markdown theme={null}
{
  "tabId": 1234,
  "what": "markdown"
}
```

```json Tables inside one element theme={null}
{
  "tabId": 1234,
  "what": "tables",
  "ref": "e42"
}
```
