Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_inspect_element

Inspect an element's non-default computed styles and optionally reveal matching CSS rules and event listeners via the debugger.

Instructions

Inspect computed styles that differ from defaults; properties selects values ("*" = all). rules and listeners use the debugger.

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": {
      "tabId": "<tabId>",
      "target": "<target>"
    },
    "name": "browser_inspect_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesNo
tabIdYes
targetYesTarget.
listenersNo
propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that output is filtered to non-default computed styles and that rules/listeners require the debugger (suggesting a heavier or slower path). It omits tab focus requirements, side effects, and any indication of result shape confidences.

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?

Two compact clauses, front-loaded with the core behavior and the filtering semantics. It is dense but not padded; the tradeoff is that the compression pushes it toward under-specification rather than verbosity.

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

Completeness2/5

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

A 5-parameter tool with 20% schema coverage, no annotations, and no output schema needs considerably more: what `tabId` and `target` accept, how the debugger-backed `rules`/`listeners` flags behave or what they cost, and what the returned style data looks like.

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 20%, so the description must compensate; it usefully explains that `properties` selects values and that "*" means all, plus the role of `rules` and `listeners`. It says nothing about `tabId` or `target`, and the schema's own target description is just 'Target.'

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 — inspecting computed styles, limited to those differing from defaults — which is enough to distinguish it from a generic style or text dump. It does not name a sibling or explicitly contrast with alternatives, so it stops short of a 5.

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 'differ from defaults' framing implicitly tells an agent when this is preferable to a full style read, and it notes that rules and listeners route through the debugger. However, there is no explicit when-to-use/when-not guidance and no named alternative such as a snapshot tool.

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