Skip to main content
Glama

screenshot

Capture an image of a specific element by ID or CSS selector, or the full viewport when omitted. Enables visual verification during browser automation.

Instructions

Capture element image (5-10k tokens), or full viewport when no id/selector is given. Use analyzePage for form data/validation (8-10k tokens).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoAPOM element ID. Mutually exclusive with selector. Omit both for viewport screenshot.
formatNoFormat (default: jpeg)
paddingNoPadding px (default: 0). Ignored for viewport.
qualityNoJPEG quality (default: 40)
maxWidthNoMax width px (default: 1024, null=original)
selectorNoCSS selector. Mutually exclusive with id. Omit both for viewport screenshot.
maxHeightNoMax height px (default: 8000, null=original)
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses token consumption (5-10k tokens) and the element/viewport distinction, which is useful. However, it does not mention other behavioral aspects like whether it is read-only, the return format, or potential failure modes. The token cost adds value but leaves some transparency gaps.

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 sentences with no fluff: the first fronts the verb and resource, second gives an alternative. Every sentence earns its place, and the token cost is a concise addition.

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?

Given 7 params, no output schema, and no annotations, the description provides clear purpose, usage guidance, and token estimates. It does not describe the return format, but the token count implies an encoded image and the schema covers parameters. The tool is simple enough that this is mostly complete.

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 the baseline is 3. The description adds the element-vs-viewport behavior, but this is already partly documented in the schema for id/selector ('Omit both for viewport screenshot'). No additional parameter meaning is provided beyond the schema.

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

Purpose5/5

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

The description clearly states the primary action ('Capture element image') and the alternative scenario ('full viewport when no id/selector is given'). It distinguishes itself from sibling tool analyzePage, which is specified for form data/validation, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly says when to use the tool ('Capture element image, or full viewport when no id/selector is given') and provides a direct alternative: 'Use analyzePage for form data/validation.' This is a clear when-to-use vs. alternative guidance, similar to the top-calibration example.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/docentovich/chrometools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server