Skip to main content
Glama

Screenshot the page or one element

qa_screenshot

Capture a screenshot of the whole page or a single element to verify what a tester actually sees, with secrets masked and build details attached.

Instructions

Take a real picture of the page under test, or of ONE element, and hand it back as an image you can look at — not as measurements. Use it for the questions geometry cannot answer: does this look right, is the shadow there, is the text legible on that background, what does the tester actually see. Pass ref or selector to crop to one element (with a little padding); omit both for the visible page. Pass full: true for THE WHOLE PAGE top to bottom, however long it is — the page is scrolled, photographed a screenful at a time and stitched into one picture, with a sticky header kept once rather than printed down the side. That is usually what a human means by "show me the page", and the visible-area shot answers a different question. It takes a second or so per screenful and cannot be combined with ref/selector. The Qiksy panel is hidden and password and card fields are covered BEFORE the frame is taken, so a screenshot pasted into a ticket carries no secret. THE TAB MUST BE IN FRONT: the browser photographs the window's active tab, and Qiksy refuses to photograph a different one rather than hand you a page you did not ask about — call qa_focus_tab first if you have been driving a background tab. A PICTURE OF THE PAGE IS NOT A PICTURE OF THE PERSON'S SCREEN: when Chrome is not the application in front, the reply carries seenByHuman: false and screen, and then the person is looking at something else. Say so; do not present the picture as what they see. EVERY SHOT CARRIES TWO THINGS A PICTURE CANNOT SAY ABOUT ITSELF: build — which build was actually running (the script files the page fetched, whatever version it declares, viewport, DPR, colour scheme, language), so nobody has to ask «which build was this»; and receipt — what was covered before the frame and what was never collected at all, which is what makes a picture of somebody else's application sendable. Downscaled to maxWidth (default 1200) because a retina frame is megabytes of context for pixels nobody needed. PASS path FOR A LONG PAGE: the file is written at FULL resolution — the downscale exists to protect this conversation, and a file is not this conversation. An inline thirty-screen shot is unreadable by arithmetic, not by accident. Read-only: it changes nothing on the page.

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

Input Schema

NameRequiredDescriptionDefault
mapNoReturn the element map with the picture: every visible control with its accessible name, role, CSS selector and box IN IMAGE PIXELS. This is what makes a screenshot something you can point INTO — anchor an annotation to a control, or draw a finding onto the shot without aiming. Written automatically beside the file when `path` is given.
refNoCrop to this element (a ref from qa_snapshot)
fullNoPhotograph the WHOLE page, not just the visible part — scrolled and stitched. Ignored when ref/selector is given.
pathNoWrite the PNG here instead of returning it inline — an absolute path, or one relative to where the bridge runs. You get back the path and the size, at FULL resolution, plus a `<name>.map.json` beside it.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
maxWidthNoDownscale to at most this wide (default 1200, max 2000)
selectorNoCrop to the first element matching this CSS selector
searchableNoAlso write a searchable SVG beside the PNG: the same picture with every string the page was showing written invisibly over its own pixels, so Ctrl+F works INSIDE the screenshot and the text can be selected and copied. Not OCR — the strings were read from the live document, so there is no recognition to be wrong about. Text inside <canvas> or a frame cannot be included, and the file says so.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does: it discloses that the panel is hidden and password/card fields are covered before the frame, that the tab must be in front, that stitching takes about a second per screenful with sticky headers kept once, and that the result may carry seenByHuman:false when Chrome is not frontmost. It also states the tool is read-only and changes nothing on the page.

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?

Front-loaded with the core purpose and then ordered by usage variant, so an agent can stop reading early. It is long and carries some editorializing that does not add decision value, such as 'An inline thirty-screen shot is unreadable by arithmetic, not by accident' and heavy all-caps emphasis, which costs space against an otherwise tight structure.

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?

There is no output schema, so the description must explain the return value and it does: an inline image, plus build (script files, viewport, DPR, colour scheme, language), receipt (what was covered and what was never collected), and optionally a map.json or searchable SVG. For an 8-parameter, zero-required tool this is sufficient for correct invocation.

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 coverage is 100%, so baseline is 3, but the description adds genuine meaning on top: what full:true physically does (scroll, photograph, stitch, sticky header deduped), why maxWidth downscaling exists versus path writing at full resolution, and that map is written beside the file when path is given. The ref/selector padding and mutual exclusion are also explained in prose beyond 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 concrete verb and resource ('Take a real picture of the page under test, or of ONE element, and hand it back as an image') and explicitly demarcates itself from measurement-oriented siblings with 'not as measurements' and 'the questions geometry cannot answer'. An agent can tell from the first sentence whether it needs a picture or numbers.

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 explicit when-to-use ('does this look right, is the shadow there, is the text legible'), when-to-use-which-variant (ref/selector to crop, omit both for visible page, full:true for the whole page), and a named prerequisite alternative: 'call qa_focus_tab first if you have been driving a background tab'. It also names a rule-out: full cannot be combined with ref/selector.

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