Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BROWSER_CDP_URLNoThe Chrome DevTools Protocol (CDP) endpoint URL. Defaults to http://127.0.0.1:9222; set only when a different local endpoint is needed.http://127.0.0.1:9222

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Treat the user as an active debugging partner, not as a passive source of prose. Prefer one precise, low-effort user action over guessing runtime state.

  • For visually ambiguous references such as “this logo”, tell the user what to click, then call pick_element with the same instruction in interaction_prompt. The page shows that instruction and the tool blocks until the user clicks or presses Escape; no client form is involved.

  • To capture an unknown user-triggered request, call get_network with capture_action=start, retain captureId, tell the user exactly what to do in chat, then call capture_action=finish with capture_id after the user reports completion. Repeat relevant filters on finish.

  • Use the same start/chat/finish sequence with get_console when reproducing an error or console message.

  • After the user opens or switches tabs, call get_pages again before omitting page_id; it refreshes the default to the focused page. An explicit page_id affects only that tool call.

  • Use direct inspection when the target is already unambiguous. Do not request user work that the runtime tools can perform reliably themselves.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_pagesC

List Chrome page tabs, refresh the default to the currently focused tab, and start console/network capture. Call again after the user switches or opens a tab.

inspect_pageA

Return a compact, visibility-aware DOM tree with useful attributes and short text. Prefer this over dumping document HTML. If the user's visual reference remains ambiguous, stop guessing and use pick_element with an interaction prompt.

inspect_elementA

Inspect the first element matching a CSS selector: stable selector, attributes, box, selected computed styles, relatives, text and clipped outer HTML.

pick_elementA

Resolve visual phrases such as 'this logo' with the page-runtime picker. Tell the user what to click before calling. The call blocks while the page highlights hovered elements, then returns the clicked element; Escape cancels. interaction_prompt changes only the page banner and never opens a client form.

evaluateA

Evaluate JavaScript in the selected page's main runtime. Supports promises and mutations, so an expression can install a one-shot DOM event listener and resolve after the user acts. Results must be serializable.

screenshotA

Capture the viewport or full page and return it as MCP image content for visual verification.

get_consoleA

Read console events or coordinate a user action without client forms. For collaboration: call capture_action=start, retain captureId, ask the user to reproduce the event in chat, then call finish with capture_id and filters.

get_networkA

Read requests or coordinate a user action without client forms. For collaboration: call capture_action=start, retain captureId, ask the user to perform the action in chat, then call finish with capture_id and filters.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 8 tools

Disambiguation4/5

Most tools target distinct resources (tabs, screenshots, console, network, DOM, JS runtime). The main overlap is between inspect_page (page-level DOM tree) and inspect_element (single element by selector), and to a lesser degree pick_element, which all deal with element resolution. Descriptions clarify the intended boundaries, so misselection is possible but manageable.

Naming Consistency4/5

Mostly follows a verb_noun or clear verb pattern (get_pages, get_console, get_network, inspect_page, inspect_element, pick_element). A few bare forms (screenshot, evaluate) deviate slightly but remain unambiguous and readable. Convention is consistent enough to predict tool behavior.

Tool Count5/5

Eight tools is a well-scoped surface for browser automation. Each tool earns its place across observation, inspection, interaction, and collaboration workflows without redundancy.

Completeness4/5

Covers observation (screenshot, console, network, DOM) and interaction (evaluate, pick_element) well, but lacks a dedicated navigation tool and direct click/type actions. These are workable via evaluate, so gaps are minor rather than blocking.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues