Skip to main content
Glama

page_screenshot

Read-only

Captures a screenshot of an open or closed page to check a UI design for the current project, with optional viewport size, selector, or full-page capture.

Instructions

Screenshot a page (open or closed) to check a UI design for the current project; never to polish investigation or other information pages. Captures a 1280x800 viewport unless you pass a size, selector or fullPage. Embed-template pages are captured at the embedded URL. Show the page first with page_show background: true so the capture does not take focus.

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

Input Schema

NameRequiredDescriptionDefault
idNoTab id, e.g. t_ab12cd34.
keyNoPage key, e.g. scribe:sprint-notes (the scribe: prefix is optional).
clickNoCSS selector to click after load, before capture. State writes, actions and signals are ignored; prefer local for views kept in scribe.local.
localNoscribe.local for this capture only (a view switcher, an open panel); laid over fromViewer. Not on embed pages.
widthNoViewport width, 320–1600. Default 1280.
heightNoViewport height, 320–1600. Default 800.
fullPageNoThe whole scrolling page, up to 6000px tall.
selectorNoCapture the first visible match of this CSS selector.
fromViewerNoStart from the user's last saved scribe.local for this page (not their scroll or window size).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only say readOnlyHint=true; the description adds real behavior: default 1280x800 viewport, override via size/selector/fullPage, embed-template pages resolve to the embedded URL, and page_show with background:true prevents focus theft. It stops short of describing return format or what a click selector does to page state, but that is partly covered in the schema.

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?

Three front-loaded sentences with no filler; purpose first, exclusions second, capture mechanics third. The 'never to polish investigation or other information pages' clause is slightly awkwardly worded but still earns its place as a routing rule.

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 9-parameter, all-optional capture tool with no output schema, the description covers the essential behaviors (defaults, embed handling, focus avoidance). It leaves the id/key/l fromViewer targeting choice to the schema, which is reasonable given the rich parameter descriptions, but that is the main remaining gap.

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 the baseline is 3. The description adds a useful synthesis of how width/height, selector and fullPage interact with the default capture, but does not clarify the id-vs-key precedence or the local/fromViewer layering beyond what the schema already says.

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 ('Screenshot a page (open or closed)') plus the intent ('check a UI design for the current project'), which cleanly separates it from investigation-oriented siblings like page_read or page_grep.

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?

Gives an explicit exclusion ('never to polish investigation or other information pages') and names the prerequisite tool call with its exact argument ('Show the page first with page_show background: true so the capture does not take focus'). An agent knows both when to call it and how to set up the call.

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