Skip to main content
Glama

调整视口

browser_resize
Idempotent

Resize the browser viewport to set a precise content area (200–5000 px) for responsive-design checks, then capture a snapshot or screenshot to review the adapted layout.

Instructions

Resize the browser window content area (200–5000). Useful for responsive-design checks; then take browser_snapshot or browser_screenshot to see the adapted layout.

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "browser_resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthYesContent width in px (200–5000)
heightYesContent height in px (200–5000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds useful workflow context — that a snapshot/screenshot is needed to observe the result — but doesn't say whether the resize persists across navigation, what happens near the 200/5000 boundaries, or whether it affects device emulation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and followed by the follow-up step. Every clause carries information; nothing is redundant filler.

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

Completeness4/5

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

For a simple two-parameter viewport tool with annotations and no output schema, the description covers purpose, bounds, and verification workflow. Only minor gaps remain (persistence across navigation, units are only in the schema), which is acceptable at this complexity.

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% and both parameters already document units (px) and the 200–5000 range, so the description merely repeats that range. Baseline 3 applies since the schema carries the parameter meaning.

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 ("Resize the browser window content area") plus a concrete value range, so an agent knows exactly what changes. No sibling tool overlaps with resizing, but the description doesn't explicitly differentiate itself from the other browser_* tools, keeping it just 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 Guidelines4/5

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

Gives a clear use case ("responsive-design checks") and a concrete next step ("then take browser_snapshot or browser_screenshot to see the adapted layout"), which is actionable sequencing guidance. It stops short of stating when NOT to resize or any prerequisites, so no exclusion guidance.

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