Skip to main content
Glama

screenshot

Capture screenshots of the current viewport, specific elements, or full page. Use as a last resort after text-based tools have failed.

Instructions

Capture a screenshot of the current page viewport, a specific element, or the full scrollable page. Returns base64-encoded image data by default, or saves to disk when save=true. Use as a LAST RESORT only after text-based tools (page_map, read_content, execute_js) have failed to provide the needed information — screenshots are expensive and cannot be searched or parsed programmatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveNoIf true, save the screenshot to the output directory and return the file path instead of base64 data. Default: false.
formatNoImage format. 'png' (default) supports transparency; 'jpeg'/'webp' produce smaller files for photos. Default: png.
qualityNoCompression quality 0–100 for jpeg/webp formats only (ignored for png). Lower values = smaller files. Default: 80.
filenameNoCustom filename for the saved image (e.g. "homepage.png"). Only used when save=true. Defaults to a timestamped name if omitted.
selectorNoCSS selector to screenshot a specific element (e.g. "#chart", ".product-image"). If omitted, captures the full viewport.
full_pageNoIf true, capture the full scrollable page height (not just the visible viewport). Ignored when selector is provided. Default: false.
output_dirNoDirectory to save the screenshot in (absolute or relative to CWD). Only used when save=true. Overrides the default output directory.
Behavior4/5

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

With no annotations, the description discloses key behaviors: returns base64 by default or saves to disk when save=true. It does not cover all edge cases (e.g., waiting for page load, animation side effects), but provides sufficient transparency for most use cases.

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, front-loaded with the core action, followed by essential advisory context. Every word earns its place; no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite lacking an output schema, the description explains return types (base64 data or file path) and covers all capture modes and optional parameters, making the tool fully self-contained.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds valuable aggregation: it summarizes the three capture modes (viewport, element, full page) and the distinction between base64 and file output, surpassing the individual parameter descriptions.

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 tool's purpose: 'Capture a screenshot of the current page viewport, a specific element, or the full scrollable page.' It distinguishes from sibling tools by positioning it as a last resort after text-based tools, 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?

Explicitly advises to use 'as a LAST RESORT only after text-based tools (page_map, read_content, execute_js) have failed,' providing clear when-to-use and when-not-to-use guidance with named alternatives.

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/Mingye-Lu/AgenticCrawler'

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