Skip to main content
Glama

Screenshot a web page

capture_sandbox_webshot
Read-only

Take a screenshot of a public web page. Webshot loads the URL in an isolated headless Chrome (desktop, tablet or mobile profile) and returns a preview image of the top of the page, a public link to the full-resolution capture, and metadata: format, file size, credits used and how long the link lasts. Use it to see how a page looks, to check a suspicious or unknown link without opening it, to capture visual evidence, or to compare layouts across devices. To read a page's text, a fetch tool is cheaper. Output is JPG (default), PNG, WebP or PDF. Most captures finish in 2 to 15 seconds; heavy pages take up to 60. Free use allows 5 credits per 15 minutes per IP: a viewport capture costs 1 credit and a full-page capture 2. The target site sees a visit from Webshot's server. Private, loopback and cloud-metadata addresses are refused, and pages that need a login are captured as a signed-out visitor sees them.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "capture_sandbox_webshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http or https URL to capture, for example https://example.com/pricing. A bare domain such as example.com is fetched over https.
themeNoColor scheme the page is asked to use (prefers-color-scheme). system keeps the page default, which is light for most sites.system
formatNoFile type of the full capture behind image_url. Credits are the same for every format. The inline preview is always a JPEG.jpg
viewportNoDevice profile. desktop: 1920x1080. tablet: 834x1194 at 2x (iPad Pro 11). mobile: 390x844 at 3x (iPhone 15 Pro), with the matching mobile user agent.desktop
full_pageNotrue captures the whole scrollable page (2 credits, capped at 16,384 px tall); false captures the first screen only (1 credit).
include_previewNoInclude a JPEG preview of the top of the page (longest side 1280 px) in the result. Set false to get only the link and metadata.

Output Schema

NameRequiredDescriptionDefault
okYestrue when the capture succeeded.
docsNo
modeYesCapture mode used, e.g. desktop_viewport or mobile_full.
bytesYesSize of the full capture in bytes.
themeNo
formatYes
creditsYesCredits this capture used: 1 for a viewport, 2 for a full page.
image_urlYesPublic link to the full capture. No key or session needed.
retentionNoHow long image_url stays available.
source_hostNoHost name of the captured URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-idempotent, and the description adds substantial behavior beyond them: 2-15s typical and 60s worst-case latency, 5 credits per 15 minutes per IP with 1 credit for viewport and 2 for full page, the fact that the target site sees a visit from Webshot's server, and that private, loopback and cloud-metadata addresses are refused. These are exactly the operational constraints an agent needs before calling.

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?

Front-loaded with purpose and outputs, then usage, then cost/latency/limitations – a sensible ordering with no filler sentences. The one redundant clause is the format list ('JPG (default), PNG, WebP or PDF'), which duplicates the schema enum.

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?

For a six-parameter, open-world capture tool with an output schema and full annotation coverage, nothing material is missing: cost, latency, security refusals, auth behavior and output shape are all addressed. Return value details are correctly left to the output schema.

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% with per-parameter enums and defaults already documented, so the schema carries the parameter burden. The description's mentions of the JPG default and the 1-vs-2 credit split largely restate what the schema already says, adding little new parameter-level meaning.

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?

States a specific verb and resource ('Take a screenshot of a public web page') and then enumerates exactly what comes back: a preview image, a full-resolution link, and metadata such as format, size, credits and link lifetime. This is far more than a restatement of the name and lets an agent decide relevance without opening the schema.

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?

Names four concrete use cases (visual inspection, vetting a suspicious link, capturing evidence, cross-device layout comparison) and an explicit alternative for a different need: 'To read a page's text, a fetch tool is cheaper.' It also sets the boundary condition that logged-in pages are captured as an anonymous visitor would see them.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.