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

# Browser Tools

> Puppeteer-based browser automation: navigate, click, type, screenshot, and more.

## Overview

Browser tools give the agent a full Chromium browser it can control programmatically. This is useful for pages that require JavaScript to render, login flows, form submission, and visual verification via screenshots.

Browser tools are in the **Full tier** - they are only sent to frontier models (Claude, GPT-4o, Gemini) that can reliably reason about page state and UI interactions.

> [!NOTE]
>
> Browser tools require Puppeteer to be installed. Run `pnpm install` to install all optional dependencies, including Puppeteer.

## Available Tools

| Tool | Description | Security |
| - | - | - |
| `browser_navigate` | Navigate to a URL | `moderate` |
| `browser_snapshot` | Get the current page accessibility tree | `safe` |
| `browser_click` | Click an element by CSS selector | `moderate` |
| `browser_type` | Type text into an input field | `moderate` |
| `browser_search` | Search the web using browser navigation | `moderate` |
| `browser_screenshot` | Take a screenshot of the current page | `safe` |
| `browser_pages` | List all open browser tabs/pages | `safe` |
| `browser_close` | Close a page or the entire browser | `moderate` |

## Tool Details

### `browser_navigate`

Navigate to a URL. Opens a new browser page if none is active.

**url** `string` *required*

Full URL to navigate to. Must be `http://` or `https://`.

**waitUntil** `string` (default: networkidle2)

Wait condition: `load`, `domcontentloaded`, `networkidle0`, `networkidle2`.

**timeout** `number` (default: 30000)

Navigation timeout in milliseconds.

***

### `browser_snapshot`

Get the current page's accessibility tree as structured text. More token-efficient than a screenshot for text-heavy pages.

**includeHidden** `boolean` (default: false)

Include hidden elements in the snapshot.

***

### `browser_click`

Click an element on the page.

**selector** `string` *required*

CSS selector for the element to click. Use `aria/Button Name` for accessible selectors.

**button** `string` (default: left)

Mouse button: `left`, `right`, `middle`.

**clickCount** `number` (default: 1)

Number of clicks (use 2 for double-click).

***

### `browser_type`

Type text into an input or textarea.

**selector** `string` *required*

CSS selector for the input element.

**text** `string` *required*

Text to type.

**clear** `boolean` (default: false)

Clear existing content before typing.

**delay** `number` (default: 0)

Delay between keystrokes in milliseconds (simulates human typing).

***

### `browser_screenshot`

Capture the current page as a PNG image.

**fullPage** `boolean` (default: false)

Capture the full scrollable page, not just the viewport.

**selector** `string`

Capture only a specific element instead of the whole page.

**quality** `number` (default: 80)

JPEG quality (1-100). Only applies when format is `jpeg`.

***

### `browser_pages`

List all currently open browser pages/tabs.

Returns page IDs, URLs, and titles. Use page IDs to target operations at specific tabs.

***

### `browser_close`

Close a specific page or all browser pages.

**pageId** `string`

ID of the specific page to close. Omit to close all pages.

## Typical Workflow

**1. Navigate to the page**

```json theme={null}
{ "url": "https://app.example.com/login" }
```

**2. Take a snapshot to see the page structure**

```json theme={null}
{ "includeHidden": false }
```

**3. Fill in the login form**

```json theme={null}
{ "selector": "#email", "text": "user@example.com", "clear": true }
```

```json theme={null}
{ "selector": "#password", "text": "mypassword", "clear": true }
```

**4. Click the submit button**

```json theme={null}
{ "selector": "button[type='submit']" }
```

**5. Screenshot to verify the result**

```json theme={null}
{ "fullPage": false }
```

## Safe vs Full Browser Tools

By default, only "safe" browser tools (`browser_snapshot`, `browser_screenshot`, `browser_pages`) are included for non-frontier models. The full automation set requires a frontier model to reason about page state accurately.

```yaml theme={null}
# settings.yml - override for specific presets
presets:
  browser-agent:
    tools:
      promote:
        - browser_navigate
        - browser_click
        - browser_type
```

## Related Tools

> [card] [Web Fetch](https://docs.profclaw.ai/tools/web-fetch.md)
>
> Faster for APIs and static pages that do not need JavaScript.

> [card] [Web Search](https://docs.profclaw.ai/tools/web-search.md)
>
> Search without opening a full browser session.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.