Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

browser_force_recreate

Recreates an unresponsive or problematic browser context, optionally preserving viewport settings, to restore a working debugging session.

Instructions

Force recreate a browser context when it becomes unresponsive or problematic

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": {
      "contextId": "<contextId>"
    },
    "name": "browser_force_recreate"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextIdYesBrowser context ID to recreate
preserveViewportNoPreserve viewport settings from original context

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. For a "force" operation it never discloses what state is destroyed (cookies, local storage, open pages), whether the existing context is invalidated or a new ID is returned, or whether the operation can fail partway. Only the trigger condition is covered.

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?

A single front-loaded sentence with no filler; the condition of use follows the action. Slightly terse given how destructive the operation sounds, but nothing is wasted.

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?

Parameters and required/optional split are fully covered by the schema, and no output schema exists to explain. However, this is a state-destroying mutation tool with zero annotations, and the description says nothing about loss of context state or the resulting return value, leaving a real gap for safe invocation.

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 both contextId and preserveViewport are already documented with defaults in the schema. The description adds no meaning beyond it – notably it does not clarify what preserveViewport=true actually restores. Baseline 3 applies when the schema does the work.

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 ("Force recreate") and resource ("browser context") plus the triggering condition. An agent can distinguish this from browser_close or browser_launch because "recreate" implies teardown-and-rebuild rather than a plain close or a fresh launch, even though no sibling is named.

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?

Gives an explicit trigger: use it "when it becomes unresponsive or problematic." It does not name alternatives (e.g., browser_health_check to diagnose first, or browser_close plus browser_launch) or state when not to use it, so it stops short of full routing guidance.

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