Skip to main content
Glama
real-browser-mcp-server
by codeiva11

browser_init

Initialize a browser session with configurable headless, proxy, viewport, video, resource blocking, WebRTC leak protection, and fingerprint options; automatically recovers stale sessions.

Instructions

Initialize a browser session with configurable options: headless mode, proxy, viewport, video recording, resource filtering, WebRTC leak protection, and coherent fingerprint profiles. Automatically recovers stale sessions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
proxyNo
headlessNo
aiHealingNoEnable selector fallback when a selector does not match
fingerprintNoFingerprint profile: 'random' picks a coherent realistic profile (UA + viewport) for the OS this browser runs on, with timezone/locale taken from the live egress IP geo; or pass an object {userAgent, viewport:{width,height}, timezoneId, locale, geolocation, colorScheme}. Explicit contextOptions win on conflict.
recordVideoNoRecord continuous video of the session
widgetAssistNoAutomatically interact with embedded page widgets and challenge elements when present
enableBlockerNoFilter auxiliary scripts, telemetry, and background tracking requests
contextOptionsNoPlaywright BrowserContext options (viewport, userAgent, geolocation, permissions, httpCredentials, extraHTTPHeaders, etc.)
blockWebRTCLeaksNoPrevent local IP leaks via WebRTC when using proxies
spoofFingerprintNoDeprecated no-op, kept for backward compatibility. The browser reports its true hardware values; faking a device is detectable as masking. Use the fingerprint profile for a coherent preset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.5.4
    • changedInput schema / properties / fingerprint / description
      Previous value: -"Fingerprint profile: 'random' picks a coherent realistic profile (UA + viewport + timezone + locale), or pass an object {userAgent, viewport:{width,height}, timezoneId, locale, geolocation, colorScheme}. Explicit contextOptions win on conflict."New value: +"Fingerprint profile: 'random' picks a coherent realistic profile (UA + viewport) for the OS this browser runs on, with timezone/locale taken from the live egress IP geo; or pass an object {userAgent, viewport:{width,height}, timezoneId, locale, geolocation, colorScheme}. Explicit contextOptions win on conflict."
    • changedInput schema / properties / spoofFingerprint / default
      Previous value: -trueNew value: +false
    • changedInput schema / properties / spoofFingerprint / description
      Previous value: -"Spoof WebGL vendor/renderer, Canvas noise, and AudioContext to defeat bot fingerprinting"New value: +"Deprecated no-op, kept for backward compatibility. The browser reports its true hardware values; faking a device is detectable as masking. Use the fingerprint profile for a coherent preset."
  2. Changed1 schema field changedv3.3.10
    • addedInput schema / properties / fingerprint
      Added value: +{
      +  "description": "Fingerprint profile: 'random' picks a coherent realistic profile (UA + viewport + timezone + locale), or pass an object {userAgent, viewport:{width,height}, timezoneId, locale, geolocation, colorScheme}. Explicit contextOptions win on conflict.",
      +  "type": [
      +    "string",
      +    "object"
      +  ]
      +}
  3. First observedv3.2.13

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the behavioral burden. It discloses a useful non-obvious trait, 'Automatically recovers stale sessions,' and catalogs option categories. It omits session lifecycle details such as whether repeated calls create or reuse sessions, cleanup expectations, and whether any permissions or auth are required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is two sentences and front-loads the purpose before listing capabilities. The option list is dense but each item corresponds to a real configuration area, with no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter session-initialization tool with no output schema and no annotations, the description leaves important context unspecified: session return value/handle, repeated-call semantics, and cleanup relationship to browser_close. It covers purpose and stale-session recovery, while the schema descriptions cover most parameter detail. Adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high at 80%, with detailed parameter descriptions for fingerprint, aiHealing, spoofFingerprint, and others. The prose adds only category-level parameter names (headless, proxy, viewport, video, filtering, WebRTC, fingerprint) and no syntax, defaults, or conflict rules beyond what the schema already provides. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: 'Initialize a browser session.' It also enumerates the configurable capabilities (headless, proxy, viewport, video, blocking, WebRTC, fingerprint). It does not explicitly contrast with siblings such as browser_close, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no prerequisites, and no statement that this must precede navigate/see_page/click. Usage is only implied by 'Initialize a browser session,' which is minimally adequate for a setup tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.