Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

browser_navigate_safe

Navigate to a URL with automatic health checks, retry logic, and context recovery to handle failed or unstable browser sessions.

Instructions

Navigate to a URL with automatic health checking, retry logic, and context recovery

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL to navigate to
timeoutNoNavigation timeout in milliseconds
waitForNoWait condition before returningdomcontentloaded
contextIdNoBrowser context ID from browser_launch (optional - will create new context if not provided)
maxAttemptsNoMaximum navigation attempts before giving up
autoRecreateNoAutomatically recreate context if navigation fails repeatedly

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the behavioral burden and does disclose meaningful traits: automatic health checks, retries, and automatic context recreation on repeated failure. However, it omits what the agent most needs to know — what happens when all attempts are exhausted (throw vs. error result), and that navigating and especially recreating a context discards the current page/DOM state.

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 verb and resource come first and the differentiators follow. It is efficient, though its brevity is part of why behavioral gaps remain rather than a sign of full coverage.

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?

For a six-parameter navigation tool with no annotations and no output schema, the description covers the headline behavior but leaves the failure path and return value entirely unspecified. The agent knows roughly what the tool tries to do, but not what it gets back or what state it may destroy on context recreation.

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 every one of the six parameters is already documented, which sets the baseline at 3. The description adds only loose conceptual linkage — 'retry logic' to maxAttempts, 'context recovery' to autoRecreate/contextId — without explaining interaction between the two or what timeout means under retries.

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 ('Navigate to a URL') and adds three distinguishing traits (health checking, retry logic, context recovery) that separate it from the plain-named sibling browser_navigate. It stops short of naming that sibling explicitly, but an agent can infer the resilient-vs-basic split from the qualifiers.

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?

Usage is only implied: the extra resilience features suggest this is the tool to pick when a plain navigation might flake, but the definition never says when to prefer it over browser_navigate or browser_force_recreate. No prerequisites, no exclusions, no cost/latency tradeoff mentioned.

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