Skip to main content
Glama

Capture website screenshot

capture_screenshot
Idempotent

Capture viewport, full-page, or element screenshots of live websites to inspect design details and enable accurate replication.

Instructions

Open a website in Chromium and return a screenshot the agent can look at: the viewport, the full page, or a single element by selector. Optionally saves the image to disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http:// or https:// URL to capture.
modeNoWhat to capture.viewport
selectorNoCSS selector, required when mode is 'element'.
timeoutMsNoNavigation timeout in milliseconds.
userAgentNoOptional browser user-agent override.
waitUntilNoPage lifecycle event to await before extraction.domcontentloaded
autoScrollNoScroll through the page before extraction to trigger lazy-rendered content.
maxScrollsNoMaximum viewport-sized scroll steps when autoScroll is enabled.
outputPathNoAbsolute file path to also save the image to.
maxHeightPxNoFull-page captures taller than this are clipped.
viewportWidthNoBrowser viewport width in CSS pixels.
viewportHeightNoBrowser viewport height in CSS pixels.
allowPrivateNetworkNoAllow localhost and private-network URLs. Enable only for trusted sites.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already cover readOnlyHint=false, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description adds that the output is for the agent to look at and that it may save to disk, but it does not disclose side effects like network access, scrolling behavior, or timeouts. No contradictions with annotations.

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 that front-load the core purpose with no filler. Every clause contributes relevant context: browser, output type, capture modes, and optional file save.

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 tool with 13 parameters, the description is minimal but sufficient for selecting the tool. It omits caveats like allowPrivateNetwork restrictions, clipping, or resource usage, but the schema and output schema fill these gaps. Adequate yet with clear gaps for a complex tool.

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 all 13 parameters are documented. The description adds a high-level summary of modes and output path, but does not provide semantics beyond what the schema already offers. Baseline 3 is appropriate.

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 website screenshot via Chromium, with three capture modes (viewport, full page, element). It specifically names the resource and the verb 'capture', distinguishing it from sibling tools like extract_assets or analyze_site.

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

Usage Guidelines4/5

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

The description implies use when the agent needs a visual screenshot by saying 'return a screenshot the agent can look at.' It does not explicitly list alternatives or exclusions, but the context is clear enough for an agent to select it over siblings.

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/blackridder22/PicassoWeb'

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