Skip to main content
Glama
agent-browser-mcp

agent-browser-mcp

by zy2755

browser_screenshot

Capture a full page, visible viewport, or specific element by ref and save it locally as an image for multimodal viewing.

Instructions

截屏并保存到本地,返回图片(供多模态查看)。可整页、可视区或单元素(ref)。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo只截该元素
filenameNo文件名(不含扩展名,默认时间戳)
fullPageNo整页截图(默认只截可视区)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden, and it does disclose two real behaviors: a file is written to local disk and the return value is an image for multimodal inspection. It omits where the file is written, whether an existing file is overwritten, and the default naming behavior (only the schema mentions the timestamp default). Reasonable but not complete for an un-annotated tool with a disk side effect.

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 short sentences that front-load the action and the return payload before the mode options. No filler, though the mode sentence slightly duplicates the schema's own parameter descriptions.

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?

With zero required parameters, a fully documented schema, and no output schema, the description covers what an agent needs: it returns an image and supports three capture scopes. Missing only minor operational detail such as the save location, which matters little for a screenshot call.

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%, so all three parameters (ref, filename, fullPage) are already explained in the schema, including the defaults. The description's restatement of the same three modes adds essentially no new meaning such as ref format expectations or filename collision behavior, so the baseline of 3 applies.

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 (capture a screenshot and save it locally) plus what is returned: an image for multimodal viewing. It also enumerates the three capture scopes (full page, viewport, single element). It stops short of naming a sibling such as browser_snapshot as the non-image alternative, so sibling disambiguation is left to inference.

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 description implies usage through the mode list – use ref for one element, fullPage for the whole document, otherwise the viewport – which is useful guidance. However, it never states when to prefer this over browser_snapshot or other inspection tools, and gives no prerequisites such as needing a navigated page or a valid ref from a snapshot.

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