Skip to main content
Glama
Debugg AI MCP

Debugg AI MCP

Official
by debugg-ai

Run E2E Browser Test

check_app_in_browser

Verify live websites and apps with an AI-driven browser that navigates pages, interacts with UI, and reports whether a specific check passes. Works on any URL, including localhost.

Instructions

Give an AI agent eyes on a live website or app. The agent browses it, interacts with it, and tells you whether a given task or check passed. Works on localhost or any URL. Use for visual QA, flow validation, regression checks, or anything that needs a real browser to verify.

LOCALHOST SUPPORT: Pass any localhost URL (e.g. http://localhost:3000) and it Just Works. A secure tunnel is automatically created so the remote browser can reach your local dev server — no manual tunnel setup, no port forwarding, no config.

SCOPE PER CALL: Keep each call to ONE focused check — a single page or a short interaction on a single screen (login, submit a form, verify a heading). For anything spanning multiple pages or long multi-step flows, split into SEPARATE calls — the remote browser agent has a ~25-step internal budget per call, and long single calls risk client-side timeouts. Example: instead of "log in, then go to settings, then update profile, then verify," make three calls: (1) log in & verify dashboard, (2) update settings, (3) verify profile change.

READING THE RESULT: report is the agent's own account of what it saw, and an agent can be wrong about visual claims (layout, overflow, what is NOT shown). Check it against the returned screenshot (also saved at screenshotPath on local runs) before trusting it, especially for responsive-width and negative ('X is not visible') checks.

CREDENTIALS: pass them as PARAMETERS, not only in the description. Naming an account in description alone does not make the agent use it — it falls back to the environment's stored credential. Use username plus credentialRef (e.g. 'simpli:qa-logins/QA_APP_PASSWORD' or 'env:NAME', resolved locally so the password never enters the transcript; do NOT paste passwords) or password (or credentialId) for the run's identity, auth.username/auth.password to pin the precondition login, and loginCredentials for accounts the agent must use at a login form it hits PART-WAY through the task (e.g. set a password → bounced to sign-in → log in as the account you just created). Anything you specify beats the environment's default for every login in the run; the result reports the identity actually used under logins.

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": {
      "description": "<description>",
      "url": "<url>"
    },
    "name": "check_app_in_browser"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to navigate to. Can be any public URL (https://example.com) OR a localhost/local dev server URL. For localhost URLs, a secure tunnel is automatically created — just make sure your dev server is running on that port.
authNoOptional auth-precondition for a 'log in THEN deep-navigate' check. Set precondition:'login' to authenticate first, then land on deepUrl. Use this instead of hoping the agent signs itself in at a login wall. Pass username/password here to pin WHICH account it authenticates as; omit them to use the environment's default credential. Cross-domain SSO (sign-in page on a different domain than the app): add that IdP host to the environment's authorizedCredentialHosts (environment tool), or the login there is refused as offscope_host.
browserNoUnset: Chrome on THIS machine when it is installed, otherwise the cloud browser (a plan with cloud browsers; localhost is tunneled). 'local' runs the clicking in your own Chrome — free on every plan, no tunnel, no *.localhost limits, much faster — while the cloud agent still decides each step. 'remote' forces the cloud browser (Pro and above). Passwords passed in this call stay on this machine. Page screenshots and text are still sent to the cloud agent. Not available over the remote HTTP MCP.
headlessNobrowser:'local' only. Default true; false shows the Chrome window.
passwordNoThe real password for the username above. Do NOT guess or use placeholder passwords — use credentials from the list above or ask the user.
repoNameNoGitHub repository name (e.g. 'my-org/my-repo'). Auto-detected from the current git repo — only provide this if you want to run against a different project than the one you're in.
usernameNoA real, existing account email for the target app. Do NOT invent or guess credentials — use one from the available credentials listed above, or ask the user. The browser agent will type this into the login form. Takes precedence over the environment's default credential for EVERY login in the run.
viewportNobrowser:'local' only. Window size in CSS pixels (200-4000), e.g. {width:390,height:844} to check a phone layout. Default 1280x800.
useProfileNobrowser:'local' only. Use the MCP-owned logged-in Chrome profile (never your everyday Chrome). Requires allowedDomains.
descriptionYesNatural language description of what to test or evaluate (e.g., 'Does the login form validate empty fields?' or 'Navigate to the homepage and verify the hero section loads')
credentialIdNoUUID of a specific credential to use for login. See available credentials in the tool description above.
extraOriginsNoExtra LOCAL origins this run may be redirected to, e.g. ["http://host.docker.internal:4717", "http://localhost:4304"] (a bare port like "4304" also works). Use for flows that hop between local servers — an OAuth consent page on another port, a callback on a third — which the remote browser otherwise cannot reach (DNS_PROBE_FINISHED_NXDOMAIN / connection refused). Redirects to these origins, and to the main url's origin, are followed through the tunnel; only origins listed here are exposed. Hosts allowed: localhost, 127.0.0.1, [::1], host.docker.internal. Limitation: absolute URLs written inside page HTML (not redirects) are not rewritten.
freshSessionNoDefault false. Set true to force a REAL login instead of reusing the warm session the backend keeps per account. Use when the login flow itself is what you're checking, when you suspect the stored session is stale, or when the app's only route between personas is a logout. Costs one login; the run re-captures afterwards, so later runs stay fast.
credentialRefNoPREFERRED over password: 'env:NAME' or 'simpli:<vault-env>/<KEY>' (e.g. 'simpli:qa-logins/QA_APP_PASSWORD'). Resolved on this machine at call time and used as the password; the secret never appears in the transcript, logs or output. Use instead of password.
environmentIdNoUUID of a specific environment to use for this test. See available environments in the tool description above.
allowedDomainsNobrowser:'local' only. Extra hostnames (and subdomains) the run may navigate to, beyond the url's own host and localhost. Navigation off this list is refused, redirects included.
credentialRoleNoPick a credential by role (e.g. 'admin', 'guest') from the resolved environment
loginCredentialsNoAccounts the agent may sign in as when it hits a login form DURING the task — not just the first login. Use this for flows that authenticate part-way through, e.g. set a password, get bounced to sign-in, then log in as the account you just provisioned. Stating credentials only in `description` is not enough: pass them here and the agent uses exactly these values. Overrides the environment's default credential.
fullPageScreenshotNobrowser:'local' only. Default false: the final screenshot is the viewport as the run left it (possibly scrolled; see pageFacts.scrollY). true captures the whole scrollable page, so content above or below the fold is in the picture.
useEnvironmentCredentialsNoDefault true. Set false to forbid the agent from ever auto-filling the environment's stored credentials — it signs in only as an account this call named (username/password, credentialId, credentialRole, loginCredentials, or auth.username), or not at all. Use when a run must prove a SPECIFIC account's experience and a silent fallback to the default test user would invalidate it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv6.2.13
    • addedInput schema / properties / auth / properties / credentialRef
      Added value: +{
      +  "description": "PREFERRED over password: 'env:NAME' or 'simpli:<vault-env>/<KEY>' (e.g. 'simpli:qa-logins/QA_APP_PASSWORD'). Resolved on this machine at call time and used as the password; the secret never appears in the transcript, logs or output. Use instead of password.",
      +  "type": "string"
      +}
    • addedInput schema / properties / credentialRef
      Added value: +{
      +  "description": "PREFERRED over password: 'env:NAME' or 'simpli:<vault-env>/<KEY>' (e.g. 'simpli:qa-logins/QA_APP_PASSWORD'). Resolved on this machine at call time and used as the password; the secret never appears in the transcript, logs or output. Use instead of password.",
      +  "type": "string"
      +}
    • addedInput schema / properties / loginCredentials / items / properties / credentialRef
      Added value: +{
      +  "description": "PREFERRED over password: 'env:NAME' or 'simpli:<vault-env>/<KEY>' (e.g. 'simpli:qa-logins/QA_APP_PASSWORD'). Resolved on this machine at call time and used as the password; the secret never appears in the transcript, logs or output. Use instead of password.",
      +  "type": "string"
      +}
    • changedInput schema / properties / loginCredentials / items / required
      Previous value: -[
      -  "username",
      -  "password"
      -]New value: +[
      +  "username"
      +]
  2. Changed3 schema fields changedv6.2.12
    • changedInput schema / properties / browser / description
      Previous value: -"Unset: Chrome on THIS machine when it is installed, otherwise the cloud browser (a plan with cloud browsers; localhost is tunneled). 'local' runs the clicking in your own Chrome — free on every plan, no tunnel, no *.localhost limits, much faster — while the cloud agent still decides each step. 'remote' forces the cloud browser (Professional and above). Passwords passed in this call stay on this machine. Page screenshots and text are still sent to the cloud agent. Not available over the remote HTTP MCP."New value: +"Unset: Chrome on THIS machine when it is installed, otherwise the cloud browser (a plan with cloud browsers; localhost is tunneled). 'local' runs the clicking in your own Chrome — free on every plan, no tunnel, no *.localhost limits, much faster — while the cloud agent still decides each step. 'remote' forces the cloud browser (Pro and above). Passwords passed in this call stay on this machine. Page screenshots and text are still sent to the cloud agent. Not available over the remote HTTP MCP."
    • addedInput schema / properties / fullPageScreenshot
      Added value: +{
      +  "description": "browser:'local' only. Default false: the final screenshot is the viewport as the run left it (possibly scrolled; see pageFacts.scrollY). true captures the whole scrollable page, so content above or below the fold is in the picture.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / viewport
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "browser:'local' only. Window size in CSS pixels (200-4000), e.g. {width:390,height:844} to check a phone layout. Default 1280x800.",
      +  "properties": {
      +    "height": {
      +      "type": "number"
      +    },
      +    "width": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changedv6.2.2
    • changedInput schema / properties / browser / description
      Previous value: -"Default 'remote' (cloud browser; localhost is tunneled). 'local' runs the clicking in Chrome on THIS machine — no tunnel, no *.localhost limits, much faster — while the cloud agent still decides each step. Needs DEBUGGAI_LOCAL_BROWSER=1 on the MCP server and the backend's local executor enabled. Passwords passed in this call stay on this machine. Page screenshots and text are still sent to the cloud agent. Not available over the remote HTTP MCP."New value: +"Unset: Chrome on THIS machine when it is installed, otherwise the cloud browser (a plan with cloud browsers; localhost is tunneled). 'local' runs the clicking in your own Chrome — free on every plan, no tunnel, no *.localhost limits, much faster — while the cloud agent still decides each step. 'remote' forces the cloud browser (Professional and above). Passwords passed in this call stay on this machine. Page screenshots and text are still sent to the cloud agent. Not available over the remote HTTP MCP."
  4. Changed5 schema fields changedv6.2.1
    • addedInput schema / properties / allowedDomains
      Added value: +{
      +  "description": "browser:'local' only. Extra hostnames (and subdomains) the run may navigate to, beyond the url's own host and localhost. Navigation off this list is refused, redirects included.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / browser
      Added value: +{
      +  "description": "Default 'remote' (cloud browser; localhost is tunneled). 'local' runs the clicking in Chrome on THIS machine — no tunnel, no *.localhost limits, much faster — while the cloud agent still decides each step. Needs DEBUGGAI_LOCAL_BROWSER=1 on the MCP server and the backend's local executor enabled. Passwords passed in this call stay on this machine. Page screenshots and text are still sent to the cloud agent. Not available over the remote HTTP MCP.",
      +  "enum": [
      +    "remote",
      +    "local"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / extraOrigins
      Added value: +{
      +  "description": "Extra LOCAL origins this run may be redirected to, e.g. [\"http://host.docker.internal:4717\", \"http://localhost:4304\"] (a bare port like \"4304\" also works). Use for flows that hop between local servers — an OAuth consent page on another port, a callback on a third — which the remote browser otherwise cannot reach (DNS_PROBE_FINISHED_NXDOMAIN / connection refused). Redirects to these origins, and to the main url's origin, are followed through the tunnel; only origins listed here are exposed. Hosts allowed: localhost, 127.0.0.1, [::1], host.docker.internal. Limitation: absolute URLs written inside page HTML (not redirects) are not rewritten.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 8,
      +  "type": "array"
      +}
    • addedInput schema / properties / headless
      Added value: +{
      +  "description": "browser:'local' only. Default true; false shows the Chrome window.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / useProfile
      Added value: +{
      +  "description": "browser:'local' only. Use the MCP-owned logged-in Chrome profile (never your everyday Chrome). Requires allowedDomains.",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changedv4.3.0
    • changedInput schema / properties / auth / description
      Previous value: -"Optional auth-precondition for a 'log in THEN deep-navigate' check. Set precondition:'login' to authenticate first, then land on deepUrl. Use this instead of hoping the agent signs itself in at a login wall. Pass username/password here to pin WHICH account it authenticates as; omit them to use the environment's default credential."New value: +"Optional auth-precondition for a 'log in THEN deep-navigate' check. Set precondition:'login' to authenticate first, then land on deepUrl. Use this instead of hoping the agent signs itself in at a login wall. Pass username/password here to pin WHICH account it authenticates as; omit them to use the environment's default credential. Cross-domain SSO (sign-in page on a different domain than the app): add that IdP host to the environment's authorizedCredentialHosts (environment tool), or the login there is refused as offscope_host."
  6. Changed1 schema field changedv4.2.2
    • addedInput schema / properties / freshSession
      Added value: +{
      +  "description": "Default false. Set true to force a REAL login instead of reusing the warm session the backend keeps per account. Use when the login flow itself is what you're checking, when you suspect the stored session is stale, or when the app's only route between personas is a logout. Costs one login; the run re-captures afterwards, so later runs stay fast.",
      +  "type": "boolean"
      +}
  7. Changed6 schema fields changedv3.10.0
    • changedInput schema / properties / auth / description
      Previous value: -"Optional auth-precondition for a 'log in THEN deep-navigate' check. Set precondition:'login' to authenticate first (using the environment's credentials), then land on deepUrl. Use this instead of hoping the agent signs itself in at a login wall."New value: +"Optional auth-precondition for a 'log in THEN deep-navigate' check. Set precondition:'login' to authenticate first, then land on deepUrl. Use this instead of hoping the agent signs itself in at a login wall. Pass username/password here to pin WHICH account it authenticates as; omit them to use the environment's default credential."
    • addedInput schema / properties / auth / properties / password
      Added value: +{
      +  "description": "Password for auth.username.",
      +  "type": "string"
      +}
    • addedInput schema / properties / auth / properties / username
      Added value: +{
      +  "description": "Account to authenticate as for the precondition login. Overrides the environment's default credential.",
      +  "type": "string"
      +}
    • addedInput schema / properties / loginCredentials
      Added value: +{
      +  "description": "Accounts the agent may sign in as when it hits a login form DURING the task — not just the first login. Use this for flows that authenticate part-way through, e.g. set a password, get bounced to sign-in, then log in as the account you just provisioned. Stating credentials only in `description` is not enough: pass them here and the agent uses exactly these values. Overrides the environment's default credential.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "label": {
      +        "description": "Optional human label (e.g. 'newly invited user') to disambiguate in the task text.",
      +        "type": "string"
      +      },
      +      "password": {
      +        "description": "That account's password.",
      +        "type": "string"
      +      },
      +      "username": {
      +        "description": "Account email/username to type into the login form.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "username",
      +      "password"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / useEnvironmentCredentials
      Added value: +{
      +  "description": "Default true. Set false to forbid the agent from ever auto-filling the environment's stored credentials — it signs in only as an account this call named (username/password, credentialId, credentialRole, loginCredentials, or auth.username), or not at all. Use when a run must prove a SPECIFIC account's experience and a silent fallback to the default test user would invalidate it.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / username / description
      Previous value: -"A real, existing account email for the target app. Do NOT invent or guess credentials — use one from the available credentials listed above, or ask the user. The browser agent will type this into the login form."New value: +"A real, existing account email for the target app. Do NOT invent or guess credentials — use one from the available credentials listed above, or ask the user. The browser agent will type this into the login form. Takes precedence over the environment's default credential for EVERY login in the run."
  8. Addedv3.7.4
  9. Removedv3.7.2
  10. Changed1 schema field changedv3.7.0
    • addedInput schema / properties / auth
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Optional auth-precondition for a 'log in THEN deep-navigate' check. Set precondition:'login' to authenticate first (using the environment's credentials), then land on deepUrl. Use this instead of hoping the agent signs itself in at a login wall.",
      +  "properties": {
      +    "deepUrl": {
      +      "description": "Optional URL to navigate to and evaluate AFTER login (e.g. a deep settings page). Falls back to `url` if omitted.",
      +      "type": "string"
      +    },
      +    "entryUrl": {
      +      "description": "Optional URL of the login page to authenticate on.",
      +      "type": "string"
      +    },
      +    "environmentId": {
      +      "description": "UUID of the environment whose credentials to log in with. See available environments in the tool description above.",
      +      "type": "string"
      +    },
      +    "precondition": {
      +      "description": "'login' = authenticate before evaluating; 'none' (default) = no login precondition.",
      +      "enum": [
      +        "login",
      +        "none"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  11. Addedv2.6.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly=false, openWorld=true, destructive=false; the description adds substantial context beyond that — automatic localhost tunneling, the internal step budget and timeout risk, the fact that screenshots and page text are still sent to the cloud agent even in local mode, and that local mode is unavailable over remote HTTP MCP. It also discloses a real reliability caveat: `report` is the agent's own account and can be wrong about layout/negative claims, so it should be checked against the screenshot.

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?

Long, but front-loaded with labeled sections (LOCALHOST SUPPORT, SCOPE PER CALL, READING THE RESULT, CREDENTIALS) that let an agent jump to the relevant part. The credentials block is dense and slightly repetitive with the schema's own credentialRef wording, which is the main thing that keeps it from a 5.

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 20-parameter, nested-object, open-world tool with no output schema, the description covers what an agent needs: input granularity, localhost/tunnel behavior, credential resolution and precedence, environment/credential references, and how to interpret the returned report, screenshot and screenshotPath. Nothing material for correct invocation is left out.

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 schema already documents all 20 parameters and the baseline would be 3. The description earns more by explaining precedence rather than definition: naming an account in `description` alone won't work, `credentialRef` beats pasting passwords, and top-level identity params beat the environment default for every login in the run. It also points to the result's `logins` field so the caller can verify which identity was actually used.

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?

Opens with a concrete verb-and-resource framing ('give an AI agent eyes on a live website or app... browses it, interacts with it, and tells you whether a task passed') and enumerates concrete use cases (visual QA, flow validation, regression checks). It does not explicitly differentiate itself from siblings such as probe_page, so an agent must infer that this is the heavier full-browser run versus a lighter page probe.

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?

States when to use it in several concrete terms and adds a strong granularity rule: one focused check per call, with an explicit worked example of splitting a multi-page flow into three calls and the reason (~25-step budget, client-side timeout risk). It also names the condition for freshSession ('when the login flow itself is what you're checking') and useEnvironmentCredentials:false ('when a run must prove a SPECIFIC account's experience').

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