Skip to main content
Glama

Guest Edge with DevTools (CDP) reachable from the host

sandbox_edge_debug

Launch Microsoft Edge in a Windows sandbox with remote debugging enabled, then relay its DevTools endpoint so host-side agents can drive the guest browser via CDP.

Instructions

Launch guest Microsoft Edge with --remote-debugging-port on its own profile and relay the DevTools endpoint to the sandbox IP (CDP binds 127.0.0.1 in the guest; a netsh portproxy bridges it). Returns the HTTP base URL plus the browser/protocol versions from /json/version — a host-side browser-use agent can then drive the guest at DOM level via /json/list and the websocket debugger URLs. Needs a sandbox started with network on or firewall.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sandbox_edge_debug"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoDefault 9222.
startUrlNoOpen this URL instead of about:blank.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-alpha.3

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that a dedicated profile is used, that CDP binds 127.0.0.1 in the guest and is bridged via netsh portproxy, the exact return payload, and the network prerequisite. It omits lifecycle details such as whether the browser is left running, how to tear it down, or port-conflict behavior.

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?

Three dense sentences, front-loaded with the action and its mechanism, with the return value and prerequisite at the end. Every clause is informative, though the netsh/portproxy detail is compact enough to verge on jargon density.

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?

No output schema exists, and the description compensates by stating exactly what is returned (HTTP base URL plus browser/protocol versions) and how the endpoint is consumed. For a two-optional-parameter launch tool the environment prerequisite is covered; only browser lifecycle/cleanup guidance is missing.

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 100% and both parameters are optional, so the schema already documents port and startUrl. The description only implies the port's role (--remote-debugging-port) and says nothing extra about startUrl or the default 9222, so it adds no meaning beyond the schema.

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?

The description names a specific verb and resource — launching guest Microsoft Edge with --remote-debugging-port on its own profile and relaying the CDP endpoint — and is clearly distinguishable from generic launch/exec siblings because it explains the DevTools/CDP outcome.

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 a clear use case (a host-side browser-use agent driving the guest at DOM level via /json/list and websocket debugger URLs) and a prerequisite (sandbox must be started with network on or firewall). It does not explicitly exclude alternatives or say when not to use it, so it stops short of a 5.

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