Skip to main content
Glama
Chrome Testing MCP Server

Chrome Testing MCP Server

by prabhubng

Capture Device Screenshots

chrome_capture_screenshots
Read-onlyIdempotent

Capture current-page screenshots across mobile, tablet, laptop, and desktop viewports, with full-page and image-format options for responsive testing.

Instructions

Capture screenshots at multiple device viewport sizes.

Takes screenshots of the current page at different device sizes:

  • mobile: iPhone 14 (390x844)

  • tablet: iPad (820x1180)

  • laptop: 14" laptop (1366x768)

  • desktop: 24" widescreen (1920x1080)

Args:

  • devices (string[]): Device viewports to capture (default: all)

  • fullPage (boolean): Capture entire scrollable page (default: true)

  • outputDir (string): Directory to save screenshots (default: ./screenshots)

  • format ('png'|'jpeg'|'webp'): Image format (default: png)

  • quality (number): Quality for jpeg/webp 0-100 (optional)

Returns: List of captured screenshots with paths.

Examples:

  • All devices: { devices: ["mobile", "tablet", "laptop", "desktop"] }

  • Mobile only: { devices: ["mobile"], fullPage: true }

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": "chrome_capture_screenshots"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoScreenshot format (default: png)png
devicesNoDevice viewports to capture screenshots for
qualityNoQuality for jpeg/webp (0-100)
fullPageNoCapture full page screenshot (default: true)
outputDirNoDirectory to save screenshots (default: ./screenshots)./screenshots

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that files are written to disk at outputDir and describes the return value, but it omits important behavior: that a browser session and loaded page are required, and whether existing files in outputDir are overwritten. Note the disk-write side effect sits slightly at odds with the read-only framing, though it does not strictly contradict the annotation.

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?

The structure is front-loaded and scannable: one-line purpose, device table, Args, Returns, Examples. The Args block largely restates defaults and enums already present in the schema, which is mild redundancy, but the device-resolution table and examples justify most of the length.

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?

With no output schema, the description correctly summarizes the return as a list of screenshot paths, which is sufficient. However, for a browser-automation tool it fails to state the precondition that a browser must be launched and a page navigated before capture, and it says nothing about overwrite behavior in outputDir — gaps an agent could stumble on.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema by mapping each device key to a concrete viewport resolution (390x844, 820x1180, etc.) and by showing two worked argument examples. The quality parameter's applicability is clarified as jpeg/webp-only, which the schema hints at but does not state as clearly.

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?

The description gives a specific verb and resource ("capture screenshots at multiple device viewport sizes") and enumerates the four named viewports with exact resolutions, so the agent knows precisely what will be produced. It does not explicitly distinguish itself from siblings like chrome_generate_report or chrome_get_performance, which could plausibly include visual output, leaving that differentiation 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?

Usage is only implied through the two examples (all devices vs. mobile only); there is no statement of when to prefer this over chrome_generate_report or a full test run, and no prerequisites such as a launched browser or navigated page. The examples do at least demonstrate the two most common invocation shapes.

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