Skip to main content
Glama

Screenshot

screenshot

Capture a page or element as a PNG image for QA, scraping, diagnostics, or reproducible browser workflows, and optionally save the image as an artifact.

Instructions

Capture a page or element screenshot as PNG image content.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNoPage id. Defaults to the active page.
fullPageNo
selectorNo
saveArtifactNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the return medium (inline PNG image content), which is genuinely useful, but says nothing about whether the call waits for load, what fullPage does to scrolling, or that saveArtifact may write a file as a side effect — a meaningful omission for a tool with a write-like option.

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?

A single front-loaded sentence with no filler; the action and output format come first. It is under-specified rather than padded, so the brevity is a clarity strength even though content is thin.

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?

With four unrequired parameters, no annotations, and no output schema, the description needs to explain parameter interactions and defaults. It omits what happens when selector and fullPage are combined, whether saveArtifact persists a file, and what errors look like, leaving an agent to guess on a capture tool with several optional knobs.

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

Parameters2/5

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

Schema description coverage is only 25%: pageId is documented in the schema, but fullPage, selector, and saveArtifact have no descriptions anywhere. The description's 'page or element' wording loosely maps to pageId/selector, but it never explains what fullPage changes or what saveArtifact causes, so it does not compensate for the coverage gap.

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 states a specific verb and resource ("Capture a page or element screenshot") and names the output format (PNG image content), so an agent knows exactly what the tool produces. It does not differentiate itself from related siblings such as pdf or snapshot, which likely also capture page content, so an agent must infer the distinction.

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?

There is no guidance on when to use this versus alternatives — notably snapshot, pdf, or element_info — nor any mention of prerequisites such as a loaded page or a selected element. The 'page or element' phrase hints at two usage modes but never says when each applies.

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