Skip to main content
Glama
Debugg AI MCP

Debugg AI MCP

Official
by debugg-ai

Probe Page

probe_page
Read-only

Capture rendered state for one or more URLs—screenshots, titles, status codes, console errors, and network summaries—to smoke-test routes or spot broken pages after refactors.

Instructions

Probe one or more URLs and return their rendered state — screenshot, page metadata (title/finalUrl/statusCode/loadTimeMs), structured console errors, and per-URL network summary (refetch loops collapse into one row by origin+pathname).

WHEN TO USE: "did I just break /settings?" / "smoke-test these 5 routes after my refactor" / "what's actually rendering at /dashboard?" — fast (<10s for 1 URL, <25s for 20), no LLM cost, no agent loop.

NOT FOR: scenario verification (sign in → click X → assert Y), interaction (clicks, form fills, scrolls), or anything requiring agent decisions. Use check_app_in_browser for those.

LOCALHOST SUPPORT: any localhost URL is auto-tunneled. Pre-flight TCP probe fails fast (<2s) if the dev server isn't listening.

BATCH MODE: pass up to 20 targets in one call to share browser session + tunnel — dramatically faster than firing parallel single-URL probes (one execution unit, not N). Per-URL waitForSelector / waitForLoadState / timeoutMs override defaults.

READINESS: navigation settles on CONTENT (the page's DOM going quiet), bounded — not on network silence, which never arrives on a live app, and not on 'load', which blocks on third-party embeds. The default is right for SPAs; reach for waitForSelector, not waitForLoadState, when you need to wait for something specific.

A single failed target's error appears in result.error without failing the whole batch — the other results stay valid.

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": {
      "targets": "<targets>"
    },
    "name": "probe_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
browserNoDefault 'remote' (cloud browser; localhost is tunneled). 'local' runs Chrome on THIS machine against the URL directly: no tunnel, nothing uploaded, screenshot also saved under ~/.debugg-ai/captures. Works only when the MCP server runs on your machine (stdio). waitForSelector/waitForLoadState/timeoutMs apply; the local mode returns screenshot, console errors, network summary, title and (optionally) HTML.
targetsYes1-20 URLs to probe. Each entry can carry its own per-URL wait config.
fullPageNobrowser:'local' only. Default false. true captures the whole scrollable page instead of just the viewport.
headlessNobrowser:'local' only. Default true. false opens a visible Chrome window.
repoNameNoGitHub repository name (e.g. 'my-org/my-repo'). Auto-detected from the current git repo — only provide this to scope the probe to a different project context.
useProfileNobrowser:'local' only. Default false (fresh throwaway profile). true uses the MCP-owned persistent profile (~/.debugg-ai/chrome-profile, never your everyday Chrome profile), so pages you signed into there are captured logged-in. Sign in once with headless:false plus loginWindowMs. Captures from it never leave the machine.
includeHtmlNoIf true, each result includes the page's outerHTML. Default false to keep response size sane.
loginWindowMsNobrowser:'local', useProfile:true, headless:false only. Keep the window open up to this long (1000-600000 ms) or until you close it, so you can sign in to the site once.
allowedDomainsNobrowser:'local', useProfile:true only. REQUIRED for a profile session unless the server owner set DEBUGGAI_PROFILE_ALLOWED_DOMAINS (which then overrides this). Hostnames (subdomains included) the logged-in session may navigate to; any other top-level navigation, redirects included, is blocked and reported in blockedNavigations. localhost is always allowed.
captureScreenshotsNoIf true (default), one PNG screenshot is returned per target. Set false for very large batches or when only the structured data matters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv6.2.12
    • addedInput schema / properties / fullPage
      Added value: +{
      +  "description": "browser:'local' only. Default false. true captures the whole scrollable page instead of just the viewport.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / targets / items / properties / viewport
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "browser:'local' only. Window size in CSS pixels (200-4000), e.g. {width:390,height:844} for a phone. Default 1280x800.",
      +  "properties": {
      +    "height": {
      +      "type": "number"
      +    },
      +    "width": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / targets / items / properties / waitForText
      Added value: +{
      +  "description": "browser:'local' only. Wait until this text is visible on the page (within timeoutMs) before capturing. Use for client-side sign-in or async screens that first show 'Loading...'.",
      +  "type": "string"
      +}
    • addedInput schema / properties / targets / items / properties / waitForUrl
      Added value: +{
      +  "description": "browser:'local' only. Wait until the page URL contains this string (within timeoutMs) before capturing.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv6.2.2
    • changedInput schema / properties / browser / description
      Previous value: -"Default 'remote' (cloud browser; localhost is tunneled). 'local' runs Chrome on THIS machine against the URL directly: no tunnel, nothing uploaded, screenshot also saved under ~/.debugg-ai/captures. Works only when the MCP server runs on your machine AND its owner set DEBUGGAI_LOCAL_BROWSER=1. waitForSelector/waitForLoadState/timeoutMs apply; the local mode returns screenshot, console errors, network summary, title and (optionally) HTML."New value: +"Default 'remote' (cloud browser; localhost is tunneled). 'local' runs Chrome on THIS machine against the URL directly: no tunnel, nothing uploaded, screenshot also saved under ~/.debugg-ai/captures. Works only when the MCP server runs on your machine (stdio). waitForSelector/waitForLoadState/timeoutMs apply; the local mode returns screenshot, console errors, network summary, title and (optionally) HTML."
  3. Changed5 schema fields changedv6.2.1
    • addedInput schema / properties / allowedDomains
      Added value: +{
      +  "description": "browser:'local', useProfile:true only. REQUIRED for a profile session unless the server owner set DEBUGGAI_PROFILE_ALLOWED_DOMAINS (which then overrides this). Hostnames (subdomains included) the logged-in session may navigate to; any other top-level navigation, redirects included, is blocked and reported in blockedNavigations. localhost is always allowed.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / browser
      Added value: +{
      +  "description": "Default 'remote' (cloud browser; localhost is tunneled). 'local' runs Chrome on THIS machine against the URL directly: no tunnel, nothing uploaded, screenshot also saved under ~/.debugg-ai/captures. Works only when the MCP server runs on your machine AND its owner set DEBUGGAI_LOCAL_BROWSER=1. waitForSelector/waitForLoadState/timeoutMs apply; the local mode returns screenshot, console errors, network summary, title and (optionally) HTML.",
      +  "enum": [
      +    "remote",
      +    "local"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / headless
      Added value: +{
      +  "description": "browser:'local' only. Default true. false opens a visible Chrome window.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / loginWindowMs
      Added value: +{
      +  "description": "browser:'local', useProfile:true, headless:false only. Keep the window open up to this long (1000-600000 ms) or until you close it, so you can sign in to the site once.",
      +  "type": "number"
      +}
    • addedInput schema / properties / useProfile
      Added value: +{
      +  "description": "browser:'local' only. Default false (fresh throwaway profile). true uses the MCP-owned persistent profile (~/.debugg-ai/chrome-profile, never your everyday Chrome profile), so pages you signed into there are captured logged-in. Sign in once with headless:false plus loginWindowMs. Captures from it never leave the machine.",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changedv4.2.2
    • changedInput schema / properties / targets / items / properties / timeoutMs / description
      Previous value: -"Per-URL navigation timeout in milliseconds (1000-30000, default 10000)."New value: +"Per-URL budget in milliseconds for navigating AND settling this target (1000-30000, default 10000). The content settle spends what the navigation left over, so this is the whole cost of the target, not just the goto."
    • changedInput schema / properties / targets / items / properties / waitForLoadState / description
      Previous value: -"When to consider the page 'loaded' before capturing. Default 'load'. Use 'networkidle' for SPAs to wait until the bundle finishes rendering."New value: +"When to consider the page ready to capture. Default 'domcontentloaded', followed by a bounded content settle (the page's DOM going quiet) — that is what actually makes a client-rendered SPA safe to screenshot, and it needs no override. Only override for a specific reason: 'load' additionally blocks on every sub-resource, including third-party iframes and images we do not control, so a slow embed can time the whole probe out. 'networkidle' is accepted for compatibility but is never issued — a live site's network does not go idle (analytics, polling, websockets, ads) — and behaves as 'domcontentloaded'. To wait on something specific, use waitForSelector."
  5. Addedv3.7.4
  6. Removedv3.7.2
  7. Addedv2.6.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint/openWorldHint, and the description adds real behavior beyond them: latency budgets (<10s for 1 URL, <25s for 20), localhost auto-tunneling with a <2s fail-fast TCP pre-flight, batch execution as one shared session/tunnel unit, and per-target error isolation that keeps the rest of the batch valid. The readiness model (content-settle instead of networkidle) is explained with the failure mode it avoids. It stops short of describing response size/truncation limits beyond the includeHtml note, so not a perfect 5.

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?

Uses clear ALL-CAPS section headers with the core purpose front-loaded, and every section answers a distinct question an agent would ask. It is on the long side and its READINESS and LOCALHOST material partially restates the schema's waitForLoadState and browser descriptions, so a small amount of duplication could be trimmed.

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

Completeness5/5

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

For a 10-parameter, no-output-schema tool this covers everything needed to call it correctly: return payload shape, latency expectations, batch limits and speed rationale, per-URL partial failure semantics, tunneling behavior, and readiness guidance. Nothing an agent needs in order to succeed is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it explains why the default 'domcontentloaded' plus bounded content settle is correct for SPAs and why overriding with 'load' or 'networkidle' is a mistake, and it frames batch mode as sharing one browser session and tunnel. That steers parameter choice rather than restating field docs.

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?

Opens with a specific verb+resource ('Probe one or more URLs') and immediately enumerates the returned artifacts (screenshot, title/finalUrl/statusCode/loadTimeMs, console errors, per-URL network summary). It also names a sibling ('Use check_app_in_browser for those'), so an agent can separate it from alternatives without inspecting either schema.

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

Usage Guidelines5/5

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

Provides paired WHEN TO USE examples in natural agent language ('did I just break /settings?', 'smoke-test these 5 routes after my refactor') and an explicit NOT FOR clause covering scenario verification, interaction, and agent-decision tasks, routing those to check_app_in_browser. Exclusion criteria are stated, not implied.

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