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

# Tools Reference

> Complete reference of tools exposed by the Hyperbrowser MCP server across all toolsets

## Web Toolset (`web`)

Served at `/mcp`, `/mcp/basic`, or any path including `web`. Requires `mcp:tools`.

### `web_fetch`

Fetch a webpage as markdown, HTML, or screenshot with automatic stealth and content sanitization.

* **Parameters**:
  * `url`: `string` – URL of the webpage to fetch
  * `outputFormat`: `"markdown" | "html" | "screenshot"` (default: `"markdown"`) – Output format
  * Anti-bot options (optional): `useStealth`, `useUltraStealth`, `useProxy`, `solveCaptchas`, `useVerified`

### `search_web`

Search the web and return the top results.

* **Parameters**:
  * `query`: `string` – Search query

### `crawl_website`

Crawl multiple pages starting from a URL and following links.

* **Parameters**:
  * `url`: `string` – Starting URL
  * `maxPages`: `number` (1–50, default: `10`) – Maximum number of pages to crawl
  * `outputFormat`: `"markdown" | "html" | "screenshot"` (default: `"markdown"`) – Output format for crawled pages
  * `urlPattern`: `string` (optional) – Regex pattern to filter URLs
  * `maxDepth`: `number` (1–5, default: `3`) – Maximum link traversal depth
  * `sameDomainOnly`: `boolean` (default: `true`) – Restrict crawling to the starting URL's hostname

### `extract_json_from_webpage`

Extract structured data from one or more webpages according to a prompt and optional JSON Schema.

* **Parameters**:
  * `urls`: `string | string[]` – URL(s) to extract from (supports wildcards)
  * `prompt`: `string` – Instructions describing what to extract
  * `schema`: `object` (optional) – JSON Schema for the extracted output
  * `maxUrls`: `number` (1–25, default: `10`) – Maximum number of URLs to process

### `run_browser_task`

Execute multi-step browser automation via natural-language instructions.

* **Parameters**:
  * `task`: `string` – Natural-language description of what to accomplish
  * `startUrl`: `string` (optional) – Initial URL to navigate to before running the task
  * `returnScreenshot`: `boolean` (default: `false`) – Whether to capture and return a final screenshot
  * `maxSteps`: `number` (1–100, default: `50`) – Maximum number of agent steps
  * Anti-bot options (optional): `useStealth`, `useUltraStealth`, `useProxy`, `solveCaptchas`, `useVerified`

## Browser Toolset (`browser`)

Served at `/mcp`, `/mcp/browser`, `/mcp/openai`, and `/mcp/claude`. Requires `mcp:tools`.

* **`create_browser_session`**: Start a cloud Chrome browser (`1280x720`) and return its `sessionId`, `status`, and `liveUrl`. Supports `region` (`us` by default), `timeoutMinutes` (1–720), `adblock`, `acceptCookies`, and anti-bot options (`useStealth`, `useUltraStealth`, `useProxy`, `solveCaptchas`, `useVerified`).
* **`browser_action`**: Drive a session step by step with `navigate`, `click`, `type_text`, `press_keys`, `scroll`, `move_mouse`, `drag`, or `screenshot`, returning the screenshot as MCP image content. Refuses sessions that hold secrets.
* **`stop_browser_session`**: Stop a running browser session when done (sessions bill while running).

## Sandbox Toolset (`sandbox`)

Served at `/mcp` or any path including `sandbox` (for example `/mcp/browser,sandbox`). Requires `mcp:tools`.

* **`create_sandbox`**: Start a Linux sandbox VM from a public or team `imageName` (defaults to `default`) or restore a `snapshotName`. Supports `region`, `cpu` (1–32), `memoryMiB`, `diskMiB`, and `timeoutMinutes` (1–1440).
* **`sandbox_exec`**: Run a shell command in a sandbox and wait up to 40 seconds for its exit code and output. Pass `background: true` for longer-running commands to get a `processId` immediately. Refuses sandboxes that hold secrets.
* **`sandbox_process`**: Wait (up to 30 seconds per call) for or kill a background command started with `sandbox_exec`.
* **`stop_sandbox`**: Stop a running sandbox when done (sandboxes bill while running).

## Admin Toolset (`admin`)

Served at `/mcp` or any path including `admin`. Requires the `mcp:admin` scope and corresponding Hyperbrowser team permissions.

* **`manage_team`**: Manage the authenticated team (`members`, `invites`, `invite`, `revoke_invite`, `resend_invite`, `remove_members`, `set_role`, `rename`).
* **`manage_api_keys`**: Manage the team's API keys (`list`, `permissions`, `create`, `update`, `delete`). Creating a key returns its secret once; listing returns metadata only.

## Usage Toolset (`usage`)

Served at `/mcp` or any path including `usage`. Requires the `mcp:usage` scope.

* **`get_usage`**: Read `credits`, `plan`, `capacity` (active and remaining shared browser/sandbox session slots), `account`, `monthly` credit history, or per-`session`, `job`, and `api_key` usage (by `id`, with optional paired `startDate`/`endDate` for `api_key`).


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