Skip to main content
Glama
Debugg AI MCP

Debugg AI MCP

Official
by debugg-ai

Browser Session

browser_session

Drive a real Chrome browser step by step with persistent sessions and server-side page understanding to automate navigation, interaction, and observation for web testing.

Instructions

Drive a real Chrome on THIS machine step by step, like Playwright, while the DebuggAI servers do the page understanding. The session stays open between calls. Pass an "action":

  • "open" {url?, allowedDomains?, headless?, viewport?, useProfile?, credentialRef?, idleTimeoutMs?} → {sessionId}. localhost needs no tunnel. credentialRef ('env:NAME' | 'simpli:/') is resolved locally; type it with text "{{cred:password}}" so the secret never enters the transcript.

  • "act" {sessionId, steps:[{action: navigate|click|dblclick|type|fill|press|select|check|uncheck|hover|scroll|wait_for|screenshot|evaluate|back|reload, ref|selector, url | text (fill/type; value also accepted) | value (select) | key (press) | forText/forUrl/ms (wait_for) | expression (evaluate)}]} → runs up to 20 steps in one call, stops at the first failure, returns a minimal delta (url change, console errors, failed requests).

  • "observe" {sessionId, fast?, screenshot?} → the SERVER-computed view of the page: visible text and interactive elements with stable refs to use in act. fast:true returns only the cheap local facts.

  • "close" {sessionId} - "list" Sessions idle out after 10 minutes. Navigation is limited to allowedDomains (the opened URL's host plus localhost). Stdio MCP only: the browser is on your machine.

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": {
      "action": "<action>"
    },
    "name": "browser_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo[open] First page to load.
fastNo[observe] Cheap local facts only, no server call.
stepsNo[act] Steps to run in order.
actionYes
waitMsNo[act] Max ms to wait for the steps to finish.
fullPageNo[observe] Full-page screenshot.
headlessNo
repoNameNo
viewportNo
projectIdNo[open] Record this session into this project (uuid). Default: the project of the git repo you run in; with neither, the run is saved without a project and does not show in any project's Dev tab.
sessionIdNo[act|observe|close] Session id from open.
screenshotNo[observe] Include a screenshot.
useProfileNo[open] MCP-owned logged-in profile (never your everyday Chrome).
userChromeNo[open] OPT-IN, only when the user explicitly asks: run on a throwaway COPY of the user's real Chrome profile (directory name like 'Default' or its display name). Needs allowedDomains. Never the default; never implied by useProfile.
credentialRefNo[open] Password pointer, resolved locally.
environmentIdNo
idleTimeoutMsNo[open] Idle close, 10s..1h. Default 10 min.
allowedDomainsNo[open] Extra hostnames the session may visit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv6.2.18

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses session persistence between calls, a 10-minute idle timeout (configurable 10s..1h), domain-limited navigation, that act runs up to 20 steps and stops at the first failure returning a minimal delta, and that credentials are resolved locally so the secret never enters the transcript. It also flags Stdio-only local execution and that userChrome runs on a throwaway copy. That is rich behavior an agent cannot get from the annotations.

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?

Structure is strong: purpose sentence first, then one indented bullet per action carrying its arguments and return shape, so scanning is fast. It is long and the inline brace notation for args/returns is dense and slightly garbled, but nearly every token carries information.

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

Completeness4/5

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

For an 18-parameter, nested, no-output-schema tool, it covers the full action set, return shapes ({sessionId}, minimal delta, observe's refs and text), timeout and domain limits, and credential handling. Remaining gaps are the undocumented repoName/environmentId and the absence of error-response guidance beyond "stops at the first failure".

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

Parameters4/5

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

The description maps parameters to actions ([open]/[act]/[observe]/[close]) and explains which step fields pair with which step action (text for fill/type, value for select, key for press, forText/forUrl/ms for wait_for, expression for evaluate), plus the credentialRef syntax and {{cred:password}} placeholder. Coverage gaps remain: repoName and environmentId are absent from both the description and schema descriptions, and amount/direction/fullPage are undocumented.

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

Purpose5/5

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

"Drive a real Chrome on THIS machine step by step, like Playwright, while the DebuggAI servers do the page understanding" names a specific verb and resource and pins the local-vs-server split, which distinguishes it from cloud-browser siblings. The action enum (open/act/observe/close/list) is stated up front so an agent knows the tool's shape immediately.

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?

Guidance is embedded per action and per option: localhost needs no tunnel, fast:true is the cheap local path, useProfile is the MCP-owned profile, and userChrome is explicitly marked "OPT-IN, only when the user explicitly asks". It never names a sibling tool to use instead, so selection between this and check_app_in_browser/probe_page is left to inference.

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