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

# Navigation

> Browser lifecycle and navigation commands: open, goto, back, forward, reload, close, close-all.

# Navigation

Commands for browser lifecycle and page navigation.

## open

Open a browser, optionally navigating to a URL. This is the browser lifecycle command -- use it when you specifically want to launch a browser or inspect an existing session.

```bash theme={null}
bap open
bap open https://example.com
```

<Tip>
  For most agent-driven browsing, prefer `bap goto`. It reuses the active page and supports fused
  observation. Use `bap open` only for explicit browser lifecycle control.
</Tip>

## goto

Navigate to a URL. Recommended for "open this URL" workflows.

<CodeGroup>
  ```bash Basic navigation theme={null}
  bap goto https://example.com
  ```

  ```bash Fused with observation theme={null}
  bap goto https://example.com --observe
  ```

  ```bash With response tier theme={null}
  bap goto https://example.com --observe --tier=interactive
  ```
</CodeGroup>

`goto` auto-initializes the browser and page if none exist. You do not need to call `bap open` first.

## back

Navigate back in browser history.

```bash theme={null}
bap back
```

## forward

Navigate forward in browser history.

```bash theme={null}
bap forward
```

## reload

Reload the current page.

```bash theme={null}
bap reload
```

## close

Close the current browser session.

```bash theme={null}
bap close
```

## close-all

Close all sessions and stop the background server daemon.

```bash theme={null}
bap close-all
```

<Warning>
  `close-all` kills the daemon process. All browser sessions across all named sessions will be
  terminated.
</Warning>
