Skip to main content
Glama

screenshot

Capture a screenshot of a web page or a specific element using CSS selectors. Save the image in PNG, JPEG, or WebP format with optional full-page capture.

Instructions

Capture a screenshot of the current page or a specific element

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameNoFilename for the saved image (e.g. "shot.png"). Only used when save is true. Defaults to a timestamped name if omitted.
formatNoImage format. JPEG/WebP produce smaller files but no transparency. Default: png.
full_pageNoCapture the full scrollable page, not just the visible viewport. Ignored when selector is provided.
output_dirNoDirectory to save the screenshot in. Overrides the default output directory.
qualityNoImage quality 0-100. Only applies when format is jpeg or webp. Default: 80.
saveNoIf true, save the screenshot to the output directory and return the saved path instead of base64.
selectorNoCSS selector to screenshot a specific element. If omitted, captures the full viewport.
Behavior3/5

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

No annotations are provided, so the description must convey behavioral traits. It states it captures a screenshot but does not mention side effects like saving to disk (when save=true) or potential latency. The description is minimal but not misleading.

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 description is very concise and front-loaded, containing the essential purpose. However, it is so brief that it may be considered under-specified, but it earns a 4 for efficiency.

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

Completeness2/5

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

Given the tool has 7 parameters and no output schema, the description is incomplete. It does not explain return values (base64 or path), the impact of the 'save' parameter, or error handling. More context is needed for correct usage.

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 no additional parameter information beyond what the schema already provides.

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 captures a screenshot of the current page or a specific element, using specific verbs and distinguishing from sibling tools like read_content or page_map. It is unambiguous.

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?

No explicit guidance when to use this tool versus alternatives. While the purpose is clear, the description does not provide context for when a screenshot is appropriate (e.g., visual verification) versus other tools.

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