Skip to main content
Glama

Capture a screenshot

capture_screenshot
Read-only

Captures a page or selected element as an image so you can inspect text inside images, icon contrast, or layout details when collected evidence lacks visual context.

Instructions

Returns a screenshot of the page, or of the element given by selector, as an image. Use it when the overview from collect_evidence lacks detail: to read text inside images, check icon contrast or look at an element named in a finding. Set width to 320 to see the reflowed layout.

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_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to check (http, https or file). A dev server such as http://localhost:3000/ works too.
widthNoViewport width in CSS px. Default 1280.
heightNoViewport height in CSS px. Default 720.
waitMsNoExtra time to wait after load, in milliseconds.
fullPageNoWhether to capture the full page. Default false (viewport only). Ignored when selector is given.
selectorNoCapture only the element matching this CSS selector. Omit to capture the page.
waitForSelectorNoAfter load, wait until an element matching this CSS selector appears. Use it to wait for an SPA to render.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and external-network profile is covered. The description adds useful behavioral context by stating the return type is an image and that width=320 triggers reflowed layout, but it says nothing about latency, waiting behavior, or image sizing/resolution limits.

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?

Three short sentences, front-loaded with what is returned, then when to use it, then a practical tip. No hedging, no redundancy, and every sentence carries distinct information.

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

Completeness4/5

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

For a 7-parameter tool with full schema coverage and no output schema, this is close to complete: the return type is described and the primary use case is explained. The only gap is that non-obvious parameters such as waitForSelector and waitMs receive no description-level guidance beyond the schema.

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

Parameters4/5

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

Schema description coverage is 100%, so baseline is 3, and the description earns an increment by adding meaning not in the schema: the concrete width=320 technique for seeing reflow. It also reinforces that selector narrows the capture target, though it leaves height, waitMs, fullPage, and waitForSelector entirely to the schema.

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 ('Returns a screenshot of the page, or of the element given by selector, as an image'), including the two capture scopes. It also distinguishes itself from the sibling collect_evidence by positioning itself as the detail-level follow-up to that tool's overview.

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?

Gives a clear trigger condition ('when the overview from collect_evidence lacks detail') and three concrete scenarios: reading text in images, checking icon contrast, and inspecting an element named in a finding. It lacks an explicit when-not or a named alternative for other cases, but the context is clear.

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