Skip to main content
Glama

e2e_capture

Captures a screenshot of any URL on demand through a Chrome pool, returning the image and its ss:HASH for visual verification or debugging.

Instructions

Capture a screenshot of any URL on demand. Connects to the Chrome pool, navigates to the URL, takes a screenshot, and returns the image with its ss:HASH.

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": "e2e_capture"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject root directory (defaults to the current working directory).
urlYesFull URL to capture (e.g. "https://example.com" or "http://host.docker.internal:3000/dashboard")
delayNoWait N milliseconds after page load before capturing (default: 0)
filenameNoOutput filename (default: capture-<timestamp>.png)
fullPageNoCapture full scrollable page (default: false)
selectorNoWait for this CSS selector before capturing
authTokenNoJWT or auth token to inject into localStorage before navigating (for authenticated pages)
waitUntilNoNavigation wait strategy. "auto" (default) tries networkidle2 first with a short timeout, then falls back to domcontentloaded + delay for SPA/WebSocket apps. Use "domcontentloaded" for apps with persistent connections (WebSocket, SSE).
authStorageKeyNolocalStorage key name for the auth token (default: "accessToken")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the execution pipeline (pool connection, navigation, capture) and the ss:HASH return handle, which is valuable given there is no output schema; however, it omits side effects such as writing a file to disk, pool-exhaustion or timeout failure modes, and browser lifecycle behavior.

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 tight sentences, front-loaded with the action and followed by the mechanism and return handle. No filler or redundant restatement of the name.

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?

No output schema exists, so the description's mention of returning the image plus its ss:HASH is a genuinely necessary addition. Wait — see below.

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 nine parameters including the waitUntil enum and auth injection are already documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource ("Capture a screenshot of any URL") plus the mechanism (Chrome pool, navigation). It does not distinguish this tool from the sibling e2e_screenshot, leaving the agent to guess which one to pick.

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

Usage Guidelines2/5

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

The only usage hint is "on demand," which gestures at manual triggering but never says when to use this instead of e2e_screenshot or within an e2e_run flow. No exclusions, prerequisites, or alternative routing are provided.

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