Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_screenshot

Capture the visible viewport or a cropped region of a browser tab as a JPEG for visual inspection, debugging, or verifying page content.

Instructions

Viewport JPEG; target crops to its box, region uses CSS px. Longest side: 1568 px.

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_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYes
regionNoCrop rectangle, CSS px
targetNoTarget.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

C2.6/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 behavioral burden and does disclose genuinely useful traits: output is JPEG, the maximum image side is capped at 1568 px, and region units are CSS pixels. It omits what happens on a failed target match, whether the element is scrolled into view or waited for, and whether the page must already be loaded.

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

Conciseness3/5

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

The definition is very short and front-loads the output format, which is good, but it is written as telegraphic fragments rather than sentences — "Viewport JPEG" and "Longest side: 1568 px" require the reader to reconstruct what is being described. Brevity here costs clarity rather than trimming waste.

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?

There is no output schema, and the description does cover return format and size limits, which is the right gap to fill. However, for a tool with a nested anyOf target parameter and no annotations, missing details about tabId, target-string behavior, and failure/scroll semantics leave the definition incomplete.

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?

At 67% schema coverage, the description usefully clarifies two of three parameters: a target produces a crop to that element's box, and region coordinates are CSS pixels. It says nothing about tabId or what a string-form target means, so meaning is only partially extended beyond the schema's terse labels ("Target.", "Crop rectangle, CSS px").

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description only names output characteristics ("Viewport JPEG") rather than stating an action; it never says it captures a screenshot of the visible viewport. It also does not distinguish this from siblings like browser_snapshot or browser_inspect_element, so the agent must infer the verb from the tool name.

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, no prerequisites (e.g. page loaded, tab active), and no mention of when to prefer browser_snapshot or browser_inspect_element instead. The only usage hint is structural: viewport by default, cropped when target or region is supplied.

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