Screenshot the page or one element
qa_screenshotCapture 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
| Name | Required | Description | Default |
|---|---|---|---|
| map | No | Return 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. | |
| ref | No | Crop to this element (a ref from qa_snapshot) | |
| full | No | Photograph the WHOLE page, not just the visible part — scrolled and stitched. Ignored when ref/selector is given. | |
| path | No | Write 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. | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab | |
| maxWidth | No | Downscale to at most this wide (default 1200, max 2000) | |
| selector | No | Crop to the first element matching this CSS selector | |
| searchable | No | Also 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. |