Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_highlight

Read-only

Draw a persistent highlight overlay around a page element to visually mark and track it during browser automation or debugging in an isolated session.

Instructions

Show a persistent highlight overlay around the element on the page.

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": {
      "session": "<session>",
      "target": "<target>"
    },
    "name": "browser_highlight"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNoOptional Chrome tab group color override for a newly created session.
styleNoAdditional inline CSS applied to the highlight overlay, e.g. "outline: 2px dashed red".
targetYesExact target element reference from the page snapshot, or a unique element selector
accountNoChrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser).default
elementNoHuman-readable element description used to obtain permission to interact with the element
sessionYesRequired isolated session name (also displayed as the Chrome tab group title), e.g. "T1867-api-debug" or "home-css". Use a unique, descriptive task name per conversation so concurrent agents never hijack each other's active tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered. The description does add that the overlay is persistent, which is real behavioral context beyond annotations. However, it omits how long it persists, whether highlights accumulate, and that removal requires a separate call.

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?

One sentence, front-loaded with the verb and effect, with no filler. It is efficient, though its brevity borders on under-specification given the tool's lifecycle behavior.

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?

Scored against complexity: six parameters, but all fully described in the schema with enums for color and account, including a detailed session naming rationale, and no output schema is needed for a visual side-effect tool. The remaining gap is lifecycle guidance, which is more a usage concern than a completeness one.

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%, so target, style, color, element, account and session are all documented in the schema itself. The description adds no meaning beyond that — it does not explain how target references relate to snapshots or how style interacts with the default overlay. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description states a concrete verb and effect: 'Show a persistent highlight overlay around the element on the page.' The word 'persistent' partly distinguishes it from transient hover/find effects, but the description never names its obvious counterpart, browser_hide_highlight, so sibling differentiation is left implicit.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all — nothing says to use this for visual debugging, to mark elements before a screenshot, or when to prefer browser_annotate. Neither does it note that the highlight must later be removed with browser_hide_highlight, which is the key lifecycle decision for this tool.

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