Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

capture_screenshot

Captures page or region screenshots and saves large images to a temp file to avoid token limits.

Instructions

Capture a screenshot of the page. Large screenshots (>=1MB) are automatically saved to a temp file to avoid token limits.

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

Input Schema

NameRequiredDescriptionDefault
clipNoCapture a specific region. Use get_box_model to get element coordinates.
formatNoImage format. Default: png
qualityNoCompression quality (0-100). Only for jpeg/webp.
filePathNoSave screenshot to this file path instead of returning data
optimizeForSpeedNoOptimize for speed over quality
captureBeyondViewportNoCapture content beyond viewport

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose one genuinely non-obvious trait: screenshots >=1MB are auto-saved to a temp file to avoid token limits. That is valuable, but it omits other key behavior — what is returned by default (inline image data vs. a path), whether the default capture is viewport-only, and whether captureBeyondViewport changes the result.

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 tight sentences with zero filler, and the most surprising behavior (the size-triggered temp file) is stated up front alongside the core purpose. Nothing needs trimming.

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 six-parameter tool with a nested clip object, no annotations, and no output schema, the description covers the biggest gotcha but not the return shape. An agent still cannot tell what a normal (non-large) call returns or whether the default capture is viewport-scoped.

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%, including the nested clip object, enum for format, and quality bounds, so the schema already does the heavy lifting. The description adds no parameter-level meaning beyond implicitly hinting that output can land in a file rather than inline.

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 states a specific verb and resource ('Capture a screenshot of the page'), which is unambiguous on its own. It does not, however, differentiate the tool from the similarly named sibling capture_snapshot, leaving the agent to infer the distinction.

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 — an agent knows to use this when it needs a visual capture, but there is no explicit when/when-not guidance or named alternative such as capture_snapshot. No prerequisites or constraints on when a screenshot is preferable to a DOM snapshot are given.

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

Deploy Server

Other Tools