ui_take_screenshot
ui_take_screenshotCapture the current viewport, a selected element, or the full scrollable page as a PNG saved to reports output; optionally return the image inline for inspection.
Instructions
Capture the current viewport and save it as a PNG to the reports output. With selector, capture just that element; with fullPage, the whole scrollable page (cut at 16000 device pixels tall and 3840px wide). With inline: true the image itself is also returned (scaled to fit 1280x8000px; the file on disk stays full size) so you can look at it. Selectors containing "nth=" are positional: call ui_get_page_state again after the page changes before reusing them.
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": "ui_take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | Also return the PNG as image content, scaled down | |
| fullPage | No | Capture the whole scrollable page, not just the viewport | |
| selector | No | CSS selector, or the `selector` value of an element from ui_get_page_state, passed unchanged; captures only that element. Not with fullPage | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |