Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

create_isolated_world

Create an isolated JavaScript execution context in a frame to separate scripts from page variables while sharing DOM access for debugging or testing.

Instructions

Create an isolated JavaScript execution context in a frame. Scripts in isolated worlds cannot access page JS variables and vice versa, but both can access the DOM.

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": {
      "frameId": "<frameId>"
    },
    "name": "create_isolated_world"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameIdYesFrame ID from get_frame_tree
worldNameNoName for the isolated world
grantUniversalAccessNoGrant universal access to the isolated world

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations are absent, so the description carries the full burden. It does add genuinely useful behavioral context about isolation: no access to page JS variables in either direction, but shared DOM access. It does not cover permissions/auth needs, what happens on repeated calls with the same worldName, or what the caller receives back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the action first, then the behavioral semantics that matter most. There is no filler and nothing is buried.

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

Completeness3/5

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

With no annotations and no output schema, the description should say more about what the call yields and how the created world is referenced afterward. It covers the conceptual model well for a short definition but leaves an agent guessing about the return value and lifecycle.

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 description coverage is 100%, so frameId, worldName, and grantUniversalAccess are already documented in the schema and the baseline is 3. The description adds no additional meaning about these parameters, notably not explaining what 'universal access' means or whether worldName is required for later reference.

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?

States a specific verb and resource: create an isolated JavaScript execution context in a frame. That is clearly distinct from sibling tools like evaluate or add_script_on_new_document, though the description never names a sibling or explains the relationship to them.

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

Usage Guidelines3/5

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

The isolation semantics ('scripts cannot access page JS variables') imply when you would want this, but there is no explicit when-to-use, when-not-to-use, or prerequisite (e.g. connect first, valid frame required). Usage must be inferred from the behavior described.

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

Deploy Server

Other Tools