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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Fetch page with Browserbase

> Fetch one URL as raw text, Markdown, or extracted JSON.

`browserbase.fetchPage` fetches one URL as raw text, Markdown, or extracted JSON. Inputs accept literal values or compatible signals. An optional second argument `{ account }` selects a named Browserbase binding.

## Example

```ts theme={null}
import { automation, onInvocation } from "automate.ax"
import { browserbase } from "automate.ax/browserbase"

export default automation("Fetch page with Browserbase", () => {
  onInvocation()
  browserbase.fetchPage({ format: "markdown", url: "https://example.com" })
})
```

## Inputs

| Input              | Type                            | Required | Default | Description                              |
| ------------------ | ------------------------------- | -------- | ------- | ---------------------------------------- |
| `url`              | `string`                        | Yes      | —       | Complete URL.                            |
| `format`           | `'raw' \| 'markdown' \| 'json'` | No       | `'raw'` | Output format.                           |
| `schema`           | `Record<string, JSON>`          | For JSON | None    | JSON Schema used for extraction.         |
| `allowRedirects`   | `boolean`                       | No       | `false` | Follow redirects.                        |
| `allowInsecureSsl` | `boolean`                       | No       | `false` | Skip target TLS verification.            |
| `proxies`          | `boolean`                       | No       | `false` | Route through Browserbase proxy support. |

## Output

Returns request ID, target status, headers, content, MIME type, and encoding.

`json` requires `schema`. Structured formats can require project enablement or additional quota.
