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

> Fetch a URL and return its main content as markdown (or text/html) without leaving a tab behind: opens a background agent tab, waits for load, reads, closes.

Fetch a URL and return its main content as markdown (or text/html) without leaving a tab behind: opens a background agent tab, waits for load, reads, closes. Use for reading docs and articles.

## Parameters

<ParamField body="url" type="string" required>
   
</ParamField>

<ParamField body="what" type="enum" required default="markdown">
  One of: `markdown`, `text`, `html`.
</ParamField>

<ParamField body="context" type="string">
   
</ParamField>

<ParamField body="keepTab" type="boolean">
   
</ParamField>

<ParamField body="timeoutMs" type="integer">
   
</ParamField>

## Example

```json theme={null}
{
  "url": "https://developer.chrome.com/docs/devtools/",
  "what": "markdown"
}
```
