Visual snapshot (screenshot or surface summary)
visualCaptures the page's current visual state—modals, overlays, dropdowns, iframes—as a compact JPEG or text-only summary to orient before DOM snapshots.
Instructions
Capture what is visually on the surface of the page right now — including modals, overlays, dropdowns, iframes and floating UI. Returns a compact JPEG screenshot (or a text summary of open modals/overlays if textOnly=true for non-vision models). Use this FIRST before snapshot/DOM when you need to understand the current visual state. Much cheaper than a full accessibility tree for orientation.
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": "visual"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| quality | No | JPEG quality 30-95. Default 72. | |
| fullPage | No | Capture the full scrollable page instead of just the viewport. | |
| maxWidth | No | Max width in px. Default 1280. | |
| textOnly | No | Return a text summary of visible modals, overlays and iframes instead of an image. Ideal for non-vision models to avoid image token costs. | |
| maxHeight | No | Max height in px. Default 900. |