# browser_close_page_on_error

Close the current browser session when the agent cannot continue.

Agent View of the PolicyLayer registry record for `browser_close_page_on_error`. HTML page: https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-close-page-on-error

## Facts

- Tool: `browser_close_page_on_error`
- Server: Mcp Captcha Solver (`2captcha/mcp-captcha-solver`) — https://policylayer.com/tools/2captcha-mcp-captcha-solver.md
- Homepage: https://github.com/2captcha/mcp-captcha-solver
- Risk category: Execute (High risk)
- Registry record: grade D, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "browser_close_page_on_error",
    "arguments": {}
  }
}
```

## Why browser_close_page_on_error is rated High

This tool terminates an active browser session, which is an external operation with real effects (destroying the session state). While it could be considered destructive to the session, browser sessions are generally transient and can be reopened, making Execute the most appropriate category. Misuse could disrupt ongoing automation workflows but has limited blast radius beyond the current session.

From the tool's own definition: "Close the current browser session when the agent cannot continue"

## Use case

AI agents invoke browser_close_page_on_error to trigger actions in Mcp Captcha Solver. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Mcp Captcha Solver:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "browser_close_page_on_error": {
      "limits": [
        {
          "counter": "browser_close_page_on_error_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Mcp Captcha Solver (12)

- `browser_click` — Execute — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-click.md
- `browser_click_verify` — Execute — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-click-verify.md
- `browser_close_page` — Execute — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-close-page.md
- `browser_open_page` — Execute — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-open-page.md
- `captcha_solve_recaptcha_v2` — Execute — https://policylayer.com/tools/2captcha-mcp-captcha-solver/captcha-solve-recaptcha-v2.md
- `browser_extract_json` — Read — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-extract-json.md
- `browser_extract_text` — Read — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-extract-text.md
- `browser_extract_verification_json` — Read — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-extract-verification-json.md
- `browser_find_elements` — Read — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-find-elements.md
- `browser_get_page_state` — Read — https://policylayer.com/tools/2captcha-mcp-captcha-solver/browser-get-page-state.md
- `healthcheck` — Read — https://policylayer.com/tools/2captcha-mcp-captcha-solver/healthcheck.md
- `list_available_workflows` — Read — https://policylayer.com/tools/2captcha-mcp-captcha-solver/list-available-workflows.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=2captcha-mcp-captcha-solver · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/2captcha-mcp-captcha-solver
