Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_emulate

Emulate a tab's viewport, network, CPU, geolocation, color scheme, reduced motion, or user agent to test site behavior without resizing the window; set reset to true to clear all emulation.

Instructions

Emulate one tab's viewport (no window resize), network, CPU, geolocation, color scheme, reduced motion or user agent. reset:true clears all.

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>"
    },
    "name": "browser_emulate"
  }
}

Input Schema

NameRequiredDescriptionDefault
resetNo
tabIdYes
networkNo
viewportNo
userAgentNo
colorSchemeNo
geolocationNonull clears
cpuThrottlingNo1 = off, 4 = 4x slower
reducedMotionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

B3.4/5.0
Behavior3/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. It usefully discloses two traits beyond the schema: that this affects exactly one tab and that reset:true wipes all emulation state. It omits whether settings persist across navigations, whether geolocation requires permission handling, and how the "none"/"offline" enum values differ from omitting a field.

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 tight sentences with the enumeration front-loaded and the reset escape hatch trailing. No filler or restatement of the title. Slightly telegraphic phrasing ("Emulate one tab's viewport") but never ambiguous.

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 9-parameter tool with nested objects, no annotations, and no output schema, the description covers the shape of the capability and the reset behavior adequately. It falls short on persistence/reload semantics and on distinguishing the "none" enum values from unset parameters, both of which an agent needs to invoke it correctly.

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 only 22%, so the description should compensate more than it does. It does add genuine meaning for reset ("reset:true clears all") and for viewport (no window resize), and it names every emulation domain. But it leaves the semantics of the "none" values in network, colorScheme, and reducedMotion unexplained, which matters because an agent must choose between "none" and omission.

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?

Specific verb ("Emulate") plus an enumerated set of emulated facets (viewport, network, CPU, geolocation, color scheme, reduced motion, user agent) scoped to "one tab." The parenthetical "(no window resize)" clarifies the boundary of what viewport emulation means. It does not name or distinguish any sibling tool, 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?

Usage is implied rather than stated: an agent infers this is the tool for simulating device/network conditions on a tab, and "reset:true clears all" gives a recovery path. There is no explicit when-to-use versus alternatives (e.g., why not browser_navigate with a device preset), and no note on prerequisites such as needing the tab to exist or a reload for changes to take effect.

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