Skip to main content
Glama

get-page-screenshot

Capture a PNG screenshot of a browser page's viewport to visually verify layout, rendering, or page state during Playwright automation.

Instructions

Capture a PNG screenshot of the tab viewport.

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": {
      "pageId": "<pageId>"
    },
    "name": "get-page-screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden; it does add genuinely useful behavioral detail by specifying PNG format and that the capture is limited to the tab viewport rather than the full scrollable page. It omits everything else an agent might need: whether the call is read-only, whether it blocks on rendering, size/encoding limits, or what happens if the page is not loaded.

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 zero filler, which is structurally clean. The terseness is a completeness problem rather than a conciseness problem, so the sentence earns its place but leaves the definition undersized for a two-parameter tool.

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?

For a tool with no annotations, no output schema, and a required pageId that neither the schema nor the description explains, the definition is too thin. The viewport-vs-full-page detail is the one valuable addition, but an agent still lacks the parameter and behavioral context needed to invoke this reliably.

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?

Only sessionId carries a schema description (the default of 'default'); pageId is a bare required string with just minLength and no meaning attached in either the schema or the description. With 50% coverage, the description should compensate by explaining what pageId identifies and how it relates to sessionId, but it says nothing about either parameter.

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 PNG screenshot') plus the scope ('tab viewport'), so an agent knows exactly what artifact it produces. It does not, however, differentiate itself from plausible siblings like get-page-snapshot or get-element-snapshot, so the 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 when-to-use guidance, no prerequisites (e.g. an open session or loaded page), and no named alternative for capturing element- or DOM-level state instead. The agent must guess whether this is the right tool versus the several snapshot siblings.

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