Skip to main content
Glama

pg_browser

Operate a persistent browser or attach to your open Chrome/Chrome Beta to run navigation, form, and inspection actions, isolating tasks into separate pinned-tab sessions.

Instructions

Operate the persistent Pure-Gemini browser (default target="managed") or attach to an already-open personal browser with remote debugging enabled: target="chrome" for daily Google Chrome, target="chrome_beta" for Google Chrome Beta, or target="user_chrome" (auto). Pass optional session (e.g. "flow") to isolate concurrent tasks into separate --pin-tab tabs; close is forbidden on personal targets.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "steps": "<steps>"
    },
    "name": "pg_browser"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYes
targetNoBrowser target: "chrome" (daily Google Chrome), "chrome_beta" (Google Chrome Beta), "user_chrome" (auto), or "managed" (sandboxed profile).
sessionNoOptional isolated pinned-tab session name for personal Chrome targets (e.g. "flow", "docs").
visibleNoRequest visible or headless mode (managed target only). Omit to retain the saved mode across restarts. A conflict preserves the running session and returns an error; never close it automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful traits: the default sandboxed profile, the remote-debugging prerequisite, session isolation into separate pinned tabs, and a forbidden operation on personal targets. However, it is silent on the side-effecting nature of click/fill/press actions, what happens when a step in the batch fails, whether steps are atomic, and how results are reported — all material for an automation tool.

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

Conciseness4/5

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

It is a compact, front-loaded passage that puts the primary operation first and the target variants second, with no filler sentences. Some density comes at the cost of readability (the semicolon-chained target list and the '--pin-tab' jargon), but nothing is wasted.

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

Completeness2/5

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

This is a high-complexity tool: a required nested array of up to 8 steps spanning 23 distinct actions, no output schema, and no annotations. The description covers target/session/visible selection but says nothing about the steps model, action ordering, or error reporting, leaving the heaviest part of the contract entirely to the schema enum names.

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 coverage is 75%, and the description largely restates the target and session parameters already documented in the schema, adding only the '--pin-tab' isolation mechanism and the close prohibition. The most complex and only required parameter, 'steps', with its 23-action enum and selector/ref semantics, gets no explanation in either description or schema, so the description does not compensate for that gap.

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 opens with a specific verb and resource ('Operate the persistent Pure-Gemini browser') and enumerates the target modes, so an agent can distinguish the managed sandbox from attaching to a personal Chrome. The gap is that it never states the fundamental execution model — that the tool runs a batched 'steps' array of up to 8 browser actions — which is the primary thing the tool does.

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

Usage Guidelines4/5

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

It gives concrete target-selection guidance (managed as default, chrome/chrome_beta for personal browsers, user_chrome as auto) plus the prerequisite that the personal browser must already be open with remote debugging enabled. It also names one hard constraint (close forbidden on personal targets) but offers no comparison against sibling tools or when-not-to-use guidance beyond that.

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