Mark a screenshot by naming elements, not coordinates
qa_annotateAnnotate screenshots with selector-anchored boxes, pins, arrows, labels, and blurs so marks track elements after re-renders; draw page findings directly and report missed elements.
Instructions
A MARK THAT KNOWS WHAT IT POINTS AT. Name the element — a CSS selector — and the box is looked up from the page itself at capture time, so the same instruction draws the correct picture today, after a fix, and at another screen width. An arrow drawn on an ordinary screenshot points at a coordinate: right when it was drawn, wrong the moment anything re-renders. That is why annotated screenshots are disposable, and it is the whole difference here. It is also how a picture marks ITSELF: a finding already carries a selector, so «draw the contrast failures» needs no aiming — pass their selectors straight through. Shapes: box (outline it), pin (a numbered dot at its corner — for ordered things like a tab route), arrow and line (from one element to another, which is how you show an error message wired to the wrong field), and blur (a pane that makes the element unreadable — an address, a customer's name, a token in a staging header). Colours are named, not free: default · bad · good · info · warn. A LABEL IS A CALLOUT, not a sticker: it is placed in free space beside its element, clear of every other mark, and joined to the outline by a leader line ending in a dot. So «outline the payment block and say what is wrong with it» comes back as one readable statement instead of words stamped over the thing they are about. A mark whose element is not on the page is REPORTED in missed, never silently dropped — a reader who sees three arrows must be able to trust that there were three things to point at. Read-only: it photographs and draws, and touches nothing — a blur hides the data in THIS picture, never on the page, so the next capture shows it again.
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_annotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Write the marked PNG here instead of returning it inline | |
| marks | No | Up to 60 marks. More than that covers the picture instead of marking it. | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab | |
| fromFindings | No | Instead of naming marks yourself, DRAW THE PAGE'S OWN FINDINGS: every finding that carries a selector becomes an outlined box with its title beside it, coloured by severity. A finding already knows where it is, so nobody has to aim — this is the picture a tester currently makes by hand, one arrow at a time. Combine with `marks` to add your own. |